Skip to content

Commit

Permalink
fix deprecationWarning message
Browse files Browse the repository at this point in the history
  • Loading branch information
saeideng committed May 13, 2018
1 parent 40642e0 commit 5db1ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ORM/Table.php
Expand Up @@ -960,13 +960,13 @@ public function hasBehavior($name)
/**
* Returns an association object configured for the specified alias if any.
*
* @deprecated 3.6.0 Use getAssociation() and Table::hasAssocation() instead.
* @deprecated 3.6.0 Use getAssociation() and Table::hasAssociation() instead.
* @param string $name the alias used for the association.
* @return \Cake\ORM\Association|null Either the association or null.
*/
public function association($name)
{
deprecationWarning('Use Table::getAssociation() and Table::hasAssocation() instead.');
deprecationWarning('Use Table::getAssociation() and Table::hasAssociation() instead.');

return $this->findAssociation($name);
}
Expand Down

0 comments on commit 5db1ae9

Please sign in to comment.