コード例 #1
0
ファイル: LinkMany.php プロジェクト: harp-orm/harp
 /**
  * @param  AbstractModel $model
  * @return LinkMany      $this
  */
 public function remove(AbstractModel $model)
 {
     $this->current->remove($model);
     return $this;
 }
コード例 #2
0
ファイル: ModelsTest.php プロジェクト: harp-orm/harp
 /**
  * @covers ::remove
  */
 public function testRemove()
 {
     $model = new City();
     $models = new Models([$model]);
     $models->remove($model);
     $this->assertCount(0, $models);
 }