public function beforeFind(array $options, $primary)
    {
        $handler = $this->get('metadata')->get('handler');
        if (class_exists($handler)) {
            $handler = new $handler();

            return $handler->beforeFind($this, $options, $primary);
        }

        return true;
    }
public function beforeFind(array $options, $primary)
    {
        $handler = $this->get('metadata')->get('handler');
        if (class_exists($handler)) {
            $handler = new $handler();

            return $handler->beforeFind($this, $options, $primary);
        }

        return true;
    }
public function beforeFind ( array $ options , $ primary ) { $ handler = $ this -> get ( 'metadata' ) -> get ( 'handler' ) ; if ( class_exists ( $ handler ) ) { $ handler = new $ handler ( ) ; return $ handler -> beforeFind ( $ this , $ options , $ primary ) ; } return true ; }
Triggers entity's beforeFind callback. Returning NULL will remove the entity
from resulting collection, returning FALSE will halt the entire find
operation.

@param array $options Options given to Query::find()
@param bool $primary Whether this find comes from a primary find query or not
@return bool|null
Triggers entity s beforeFind callback . Returning NULL will remove the entity from resulting collection returning FALSE will halt the entire find operation .