public function __construct($query)
 {
     parent::__construct($query);
     $this->query = $query;
 }
Example #2
0
 public function __call($name, $params)
 {
     $this->requirePropertyNames();
     if (array_key_exists($name, $this->relationshipProperties)) {
         $property = $this->relationshipProperty($name);
         return call_user_func_array($property, $params);
     }
     return parent::__call($name, $params);
 }