Call the parent where method

@return bool|null

@throws \Exception
490145
public static function where($column, $operator = null, $value = null, $boolean = 'and')
    {
        return parent::query()->where($column, $operator, $value, $boolean);
    }
958094
public function getParentClass()
    {
        return ($reflection = parent::getParentClass()) ? new self($reflection->getName(), $this->mapper, $this->entityReflectionProvider) : null;
    }
970153
function get_parent(){
		if( !is_null($this->pidx) && isset(self::$reg[$this->pidx]) ){
			return self::$reg[$this->pidx];
		}
		else {
			return null;
		}
	}
689947
protected function pkvAsWhere()
    {
        $this->checkPkv();

        if (is_array($this->getPk())) {
            if (is_scalar($this->getPkv())) {
                throw new Exception('Error type of '.get_called_class().'::$id, it mast be array');
            }

            $whereArr = [];
            foreach ((array)($this->getPkv()) as $pk => $pv) {
                $whereArr[] = [$pk, $pv, '='];
            }
        } else {
            $whereArr = [$this->getPk(), $this->getPkv(), '='];
        }

        return $whereArr;
    }
23029
public function ancestors(callable $where=null) {
		$p = $this;
		while ($p->getParent()) {
			$p = $p->getParent();
			if ($where === null || $where($p)) {
				yield $p;
			}
		}
	}
1078638
private function FindParentGroup()
    {
        $parentGroup = null;
        if ($this->parent)
        {
            $parentGroup = GroupFinder::FindPageGroup($this->parent);
        }
        if (!$parentGroup)
        {
            $parentGroup = $this->site->GetUserGroup();
        }
        return $parentGroup;
    }
927529
public function getParent()
    {
        return $this->BaseClass && $this->ParentID
            ? DataObject::get_by_id($this->BaseClass, $this->ParentID, true)
            : null;
    }
1058150
public function bindWhere()
    {
        if (count($this->wheresBindValue) > 0) {
            foreach ($this->wheresBindValue as $value) {
                $bindDataType = $this->bindDataType($value[2]);
                $this->sqlQuery->bindValue($this->positioningMarker, $value[2], $bindDataType);

                $this->positioningMarker++;
            }
        }

        return $this;
    }
1254359
private function FindParentGroup()
    {
        $parentGroup = null;
        $parentContent = $this->Content()->Exists() ? ContentTreeUtil::ParentOf($this->Content()) : null;
        if ($parentContent) {
            $parentGroup = GroupFinder::FindContentGroup($parentContent);
        }
        if (!$parentGroup) {
            switch ($this->Location()) {
                case Enums\ContentLocation::Page():
                    $parentGroup = GroupFinder::FindPageGroup($this->Page());
                    break;

                case Enums\ContentLocation::Layout():
                    $parentGroup = $this->Area()->GetLayout()->GetUserGroup();
                    break;

                case Enums\ContentLocation::Container():
                    $parentGroup = $this->Container()->GetUserGroup();
                    break;
            }
        }
        return $parentGroup;
    }
428832
public  function getParents(){
         $class = get_called_class();
         $meta = $class::getMetadata(); 
         $path = $this->{$meta['pathfield']};
         $ap = str_split($path,8);
         array_pop($ap);
         if(count($ap)==0){
             return array();
         }
         $ids = implode(",",$ap) ;
         $where = $meta["keyfield"] . " in (".$ids.")";    
         return self::find($where,$meta["keyfield"] . " desc");
         
    }
619362
public function getWhere()
    {
        $template = "WHERE %s";
        $where = null;
        if (count($this->_sql->conditions->predicates) > 0) {
            $where = trim(
                sprintf($template, $this->_sql->conditions->toString())
            );
        }

        return $where;
    }
1073272
protected function setWhere()
    {
        $foreign = $this->getForeignKey();

        $this->query->where($foreign, '=', $this->parent->getKey());

        return $this;
    }
513241
public function filterParent()
    {
        $value = $this->parent_name;
        $parent = self::findOne(['name' => $value]);
        if ($parent) {
            $id = $this->id;
            $parent_id = $parent->id;
            while ($parent) {
                if ($parent->id == $id) {
                    $this->addError('parent_name', 'Loop detected.');

                    return;
                }
                $parent = $parent->menuParent;
            }
            $this->parent = $parent_id;
        }
    }
295160
public function getParent()
    {
        if ($this->isRoot()) throw new Exception\CMS('No parent for root Catalog');
    
        if (!$this->_parent) {
        
            $fields = self::getDbConnection()->fetchAssoc( 
                " SELECT A.*
                  FROM dir_data A, dir_structure B, dir_structure C 
                  WHERE C.data_id=? and B.data_id=A.id and B.lft<C.lft and B.rght>C.rght and B.level=C.level-1", 
                array( (int)$this->id )
            );        
        
            if ($fields) {
                $this->_parent = Catalog::fetch($fields);
            } else {
                $this->_parent = Catalog::getRoot();
            }
        }
        return $this->_parent;
    }
627069
public function parentStack() {
        $p=$this->owner;
        
        while($p) {
            $stack[]=$p;
            if($p->FolderID && $p->FolderID>0) {
                $folder=$p->Folder();
                if(!empty($folder) && $folder!==false && $folder->ID!=0) {
                    $p=$folder;
                }
            }else {
                $p=$p->LanguageID ? $p->Language() : null;
            }
        }
        
        return $stack;
    }
711757
protected function getWhereClause()
    {
        $where = "WHERE\n";
        
        $value = $this->user_id_getter->invoke();
        
        if (empty($value) && (string)$value != "0") {
            $where .= $this->user_id_field . " IS NULL";
        } else switch (checkempty($this->settings_fields[$this->user_id_field])) {
            case DBWorker::DB_NUMBER:
                $where .= $this->user_id_field . " = " . $value;
                break;
            
            case DBWorker::DB_DATETIME:
                $where .= $this->user_id_field . " = '" . $this->dbworker->format_datetime($value) . "'";
                break;
            
            case DBWorker::DB_DATE:
                $where .= $this->user_id_field . " = '" . $this->dbworker->format_date($value) . "'";
                break;
            
            default:
                $where .= $this->user_id_field . " = '" . $value . "'";
        }
        
        return $where;
    }
161041
public function getListParent()
    {
        $parent = session()->get($this->getSessionKey(static::TYPE_PARENT));

        if (null === $parent) {
            return null;
        }

        if (static::PARENT_DISABLE === $parent) {
            return false;
        }

        list($relation, $key) = explode(':', $parent, 2);

        return compact('relation', 'key');
    }