public function getByPrimaryKey($primaryKeys)
    {
        if (is_array($primaryKeys) && empty($primaryKeys)) {
            return [];
        }
        $records = $this->getByField($this->entity->getPrimaryKey(), $primaryKeys);

        if (!is_array($primaryKeys)) {
            return current($records);
        }

        return $records;
    }