Skip to content
Permalink
Browse files

fix deprecationWarning message

  • Loading branch information...
saeideng committed May 13, 2018
1 parent 40642e0 commit 5db1ae9ce3347476018f76d24013ec0ea8250195
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ORM/Table.php
@@ -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);
}

0 comments on commit 5db1ae9

Please sign in to comment.
You can’t perform that action at this time.