protected function _setupWheres() { $this->_wheres[] = new SimDAL_Query_Where_JoinDescendant($this->_descendant->getEntity(), $this->_descendant); }
public function getRightValue() { return $this->_entity->getColumn($this->_descendent->getParentKey()); //return new SimDAL_Query_Where_Column($this->_entity->getTable(), $this->_entity->getColumn($this->_descendant->getParentKey())); }