public function getByKeys(array $keys)
	{
		if (count($keys) < 1) {
			throw new \InvalidArgumentException('Cannot getByKeys with an empty array');
		}

		$query = $this->newQuery()
			->whereIn($this->getKeyName(), $keys);

		return $this->fetchMany($query);
	}
public function getByKeys(array $keys)
	{
		if (count($keys) < 1) {
			throw new \InvalidArgumentException('Cannot getByKeys with an empty array');
		}

		$query = $this->newQuery()
			->whereIn($this->getKeyName(), $keys);

		return $this->fetchMany($query);
	}
public function getByKeys ( array $ keys ) { if ( count ( $ keys ) < 1 ) { throw new \ InvalidArgumentException ( 'Cannot getByKeys with an empty array' ) ; } $ query = $ this -> newQuery ( ) -> whereIn ( $ this -> getKeyName ( ) , $ keys ) ; return $ this -> fetchMany ( $ query ) ; }
Get a collection of rows by an array of primary keys.

@param  array  $keys

@return mixed

@throws \InvalidArgumentException if $keys is empty
Get a collection of rows by an array of primary keys .