/** * Use the Primary key for the "name" part of the where constraint * * @param mixed $values * @return Find $this */ public function whereKeys(array $values) { $repo = $this->getRepo(); $this->select->whereIn("{$repo->getTable()}.{$repo->getPrimaryKey()}", $values); return $this; }