1
0
mirror of synced 2024-12-14 15:16:04 +03:00

param order wrong on array_search in D_Table::getAliasName()

This commit is contained in:
pookey 2006-11-10 18:24:34 +00:00
parent 34ecd30498
commit f84fce2e5e

View File

@ -527,7 +527,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
* @return string
*/
final public function getAliasName($alias) {
if($name = array_search($this->boundAliases,$alias))
if($name = array_search($alias, $this->boundAliases))
return $name;
throw new Doctrine_Table_Exception('Unknown alias '.$alias);