protected function update($entity, $where = null, $tableName = null, HydratorInterface $hydrator = null)
    {
        if (! $where) {
            $where = 'id = ' . $entity->getId();
        }
        return parent::update($entity, $where, $tableName, $hydrator);
    }