src/CRUDlex/MySQLData.php
protected function addSoftDeletionToQuery(EntityDefinition $definition, QueryBuilder $queryBuilder, $fieldPrefix = '', $method = 'andWhere')
    {
        if (!$definition->isHardDeletion()) {
            $queryBuilder->$method($fieldPrefix.'deleted_at IS NULL');
        }
    }
protected function addSoftDeletionToQuery(EntityDefinition $definition, QueryBuilder $queryBuilder, $fieldPrefix = '', $method = 'andWhere')
    {
        if (!$definition->isHardDeletion()) {
            $queryBuilder->$method($fieldPrefix.'deleted_at IS NULL');
        }
    }
protected function addSoftDeletionToQuery ( EntityDefinition $ definition , QueryBuilder $ queryBuilder , $ fieldPrefix = '' , $ method = 'andWhere' ) { if ( ! $ definition -> isHardDeletion ( ) ) { $ queryBuilder -> $ method ( $ fieldPrefix . 'deleted_at IS NULL' ) ; } }
Adds the soft deletion parameters if activated.

@param EntityDefinition $definition
the entity definition which might have soft deletion activated
@param QueryBuilder $queryBuilder
the query builder to add the deletion condition to
@param string $fieldPrefix
the prefix to add before the deleted_at field like an table alias
@param string $method
the method to use of the query builder, "where" or "andWhere"
Adds the soft deletion parameters if activated .