示例#1
0
 /**
  * @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);
 }
示例#2
0
文件: LinkOne.php 项目: harp-orm/harp
 /**
  * @param AbstractRelOne $rel
  * @param AbstractModel  $current
  */
 public function __construct(AbstractModel $model, AbstractRelOne $rel, AbstractModel $current)
 {
     $this->current = $current;
     $this->original = $current;
     parent::__construct($model, $rel);
 }