Skip to content

Commit

Permalink
Change call to deprecated Association::className()
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Feb 6, 2019
1 parent cb1d564 commit 8eff4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/ViewListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ protected function _associations(array $whitelist = [])
$associationConfiguration[$type][$assocKey]['displayField'] = $association->getTarget()->getDisplayField();
$associationConfiguration[$type][$assocKey]['foreignKey'] = $association->getForeignKey();
$associationConfiguration[$type][$assocKey]['propertyName'] = $association->getProperty();
$associationConfiguration[$type][$assocKey]['plugin'] = pluginSplit($association->className())[0];
$associationConfiguration[$type][$assocKey]['plugin'] = pluginSplit($association->getClassName())[0];
$associationConfiguration[$type][$assocKey]['controller'] = $assocKey;
$associationConfiguration[$type][$assocKey]['entity'] = Inflector::singularize(Inflector::underscore($assocKey));
$associationConfiguration[$type][$assocKey]['entities'] = Inflector::underscore($assocKey);
Expand Down

0 comments on commit 8eff4ec

Please sign in to comment.