Node::beforeFind PHP 메소드

beforeFind() 공개 메소드

beforeFind callback
public beforeFind ( $queryData ) : array
리턴 array
    public function beforeFind($queryData)
    {
        $typeField = $this->alias . '.type';
        if ($this->type != null && !isset($queryData['conditions'][$typeField])) {
            $queryData['conditions'][$typeField] = $this->type;
        }
        return $queryData;
    }