Ejemplo n.º 1
0
 /**
  * Extends the portability for tests
  *
  * {@inheritdoc]
  */
 public function addColumn(Column $column) : Model
 {
     parent::addColumn($column);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Add a model in the models array
  *
  * @param Model $model
  * @param string $alias
  * @return Query
  */
 public function addModel(Model $model, string $alias = null) : self
 {
     if ($alias === null) {
         $alias = $model->getId();
     }
     $this->models[$alias] = $model;
     return $this;
 }