예제 #1
0
파일: Models.php 프로젝트: harp-orm/core
 /**
  * Add all models from a different Models collection
  *
  * @param Models $other
  */
 public function addAll(Models $other)
 {
     if ($other->count() > 0) {
         $this->models->addAll($other->models);
     }
     return $this;
 }
예제 #2
0
파일: Save.php 프로젝트: harp-orm/core
 /**
  * @return int
  */
 public function count()
 {
     return $this->models->count();
 }
예제 #3
0
파일: LinkMany.php 프로젝트: harp-orm/core
 /**
  * @return int
  */
 public function count()
 {
     return $this->current->count();
 }