Exemple #1
0
 /**
  * Find many entities by their primary keys.
  *
  * @param  array  $id
  * @param  array  $columns
  * @return EntityCollection
  */
 public function findMany($id, $columns = array('*'))
 {
     if (empty($id)) {
         return new EntityCollection();
     }
     $this->query->whereIn($this->entityMap->getQualifiedKeyName(), $id);
     return $this->get($columns);
 }
 /**
  * Get the key for comparing against the parent key in "has" query.
  *
  * @return string
  */
 public function getHasCompareKey()
 {
     return $this->farParentMap->getQualifiedKeyName();
 }