original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Triggers entity s beforeFind callback . Returning NULL will remove the entity from resulting collection returning FALSE will halt the entire find operation .