Example #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);
 }