예제 #1
0
 /**
  * @covers ::remove
  */
 public function testRemove()
 {
     $model = new Model();
     $models = new Models([$model]);
     $models->remove($model);
     $this->assertCount(0, $models);
 }
예제 #2
0
파일: LinkMany.php 프로젝트: harp-orm/core
 /**
  * @param  AbstractModel $model
  * @return LinkMany      $this
  */
 public function remove(AbstractModel $model)
 {
     $this->current->remove($model);
     return $this;
 }