Commit f84fce2e authored by pookey's avatar pookey

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

parent 34ecd304
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment