Beispiel #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);
 }
Beispiel #2
0
 /**
  * Get the key for comparing against the parent key in "has" query.
  *
  * @return string
  */
 public function getHasCompareKey()
 {
     return $this->farParentMap->getQualifiedKeyName();
 }