예제 #1
0
 /**
  * @param array $ids
  * @param array $columns
  * @return \Notadd\Foundation\Database\Eloquent\Collection
  */
 public function findMany($ids, $columns = ['*'])
 {
     if (empty($ids)) {
         return $this->model->newCollection();
     }
     $this->query->whereIn($this->model->getQualifiedKeyName(), $ids);
     return $this->get($columns);
 }
예제 #2
0
 /**
  * @return string
  */
 public function getQualifiedParentKeyName()
 {
     return $this->parent->getQualifiedKeyName();
 }
예제 #3
0
 /**
  * @return string
  */
 public function getHasCompareKey()
 {
     return $this->farParent->getQualifiedKeyName();
 }