public function __construct($name, Config $config, $foreignModel, $through, array $options = array()) { $this->through = $through; parent::__construct($name, $config, $foreignModel, $options); }
public function __construct($name, Config $config, $foreignModel, $foreignKeyName, array $options = array()) { $this->foreignKey = $foreignKeyName . 'Id'; $this->foreignClassKey = $foreignKeyName . 'Class'; parent::__construct($name, $config, $foreignModel, $options); }
/** * @param AbstractRelMany $rel * @param AbstractModel[] $models */ public function __construct(AbstractModel $model, AbstractRelMany $rel, array $models) { $this->current = new RepoModels($rel->getRepo(), $models); $this->original = new RepoModels($rel->getRepo(), $models); parent::__construct($model, $rel); }