eagerCursor() public method

Set whether the query should return its result as an EagerCursor.
public eagerCursor ( boolean $bool = true )
$bool boolean
コード例 #1
0
ファイル: Builder.php プロジェクト: WilBenShu/digital_pilot
 /**
  * {@inheritdoc}
  */
 public function eagerCursor($bool = true)
 {
     if (!$bool && !empty($this->primers)) {
         throw new \BadMethodCallException("Can't set eagerCursor to false when using reference primers");
     }
     return parent::eagerCursor($bool);
 }