示例#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
 /**
  * @return int
  */
 public function count()
 {
     return $this->current->count();
 }