newInstance() 공개 메소드

Returns a new Query Builder instance.
public newInstance ( ) : Builder
리턴 Builder
예제 #1
0
파일: Model.php 프로젝트: adldap2/adldap2
 /**
  * Synchronizes the models attributes with the server values.
  *
  * @return bool
  */
 public function syncRaw()
 {
     $model = $this->query->newInstance()->findByDn($this->getDn());
     if ($model instanceof Model) {
         $this->setRawAttributes($model->getAttributes());
         return true;
     }
     return false;
 }
예제 #2
0
파일: Factory.php 프로젝트: adldap2/adldap2
 /**
  * Handle dynamic method calls on the query builder object.
  *
  * @param string $method
  * @param array  $parameters
  *
  * @return mixed
  */
 public function __call($method, $parameters)
 {
     $query = $this->query->newInstance();
     return call_user_func_array([$query, $method], $parameters);
 }