コード例 #1
0
ファイル: Models.php プロジェクト: harp-orm/harp
 /**
  * @param  Models $models
  * @return Models $this
  */
 public function removeAll(Models $models)
 {
     $this->models->removeAll($models->all());
     return $this;
 }
コード例 #2
0
ファイル: ModelsTest.php プロジェクト: harp-orm/harp
 /**
  * @covers ::add
  */
 public function testAdd()
 {
     $models = new Models();
     $model = new City();
     $models->add($model);
     $this->assertSame([$model], Objects::toArray($models->all()));
 }