Example #1
0
 public function __construct($params)
 {
     BaseOrm::configure($this, $params);
 }
Example #2
0
 public function __construct($config = [])
 {
     BaseOrm::configure($this, $config, ['rel' => 'relation']);
     if ($this->relation !== null) {
         $this->isRelation = true;
     }
 }
Example #3
0
 public function __construct($kwargs = [])
 {
     BaseOrm::configure($this, $kwargs, ['to' => 'toModel']);
 }
Example #4
0
 public function __construct($name, $fields, $kwargs = [])
 {
     $this->name = $name;
     $this->fields = $fields;
     BaseOrm::configure($this, $kwargs);
 }