protected function getPrimaryKeyWheres(AbstractEntity $entity)
    {
        $wheres = [];

        $arrayCopy = $entity->getArrayCopy();
        foreach ($this->primaryKey as $keyColumn) {
            $wheres[$keyColumn] = $arrayCopy[$keyColumn];
        }

        return $wheres;
    }