Example #1
0
 /**
  * @param  AbstractModel $model
  * @return LinkMany      $this
  */
 public function remove(AbstractModel $model)
 {
     $this->current->remove($model);
     return $this;
 }
Example #2
0
 /**
  * @covers ::remove
  */
 public function testRemove()
 {
     $model = new City();
     $models = new Models([$model]);
     $models->remove($model);
     $this->assertCount(0, $models);
 }