main/app/API/Finder/AbstractFinder.php
public function delete(array $filters = [])
    {
        /** @var QueryBuilder $qb */
        $qb = $this->om->createQueryBuilder();
        $qb->delete($this->getClass(), 'obj');

        // filter query - let's the finder implementation process the filters to configure query
        $query = $this->configureQueryBuilder($qb, $filters);

        if ($query instanceof QueryBuilder) {
            $qb = $query;
        }

        if (!($query instanceof NativeQuery)) {
            // order query if implementation has not done it
            $query = $qb->getQuery();
        }

        $query->getResult();
    }
public function delete(array $filters = [])
    {
        /** @var QueryBuilder $qb */
        $qb = $this->om->createQueryBuilder();
        $qb->delete($this->getClass(), 'obj');

        // filter query - let's the finder implementation process the filters to configure query
        $query = $this->configureQueryBuilder($qb, $filters);

        if ($query instanceof QueryBuilder) {
            $qb = $query;
        }

        if (!($query instanceof NativeQuery)) {
            // order query if implementation has not done it
            $query = $qb->getQuery();
        }

        $query->getResult();
    }
public function delete ( array $ filters = [ ] ) { /** @var QueryBuilder $qb */ $ qb = $ this -> om -> createQueryBuilder ( ) ; $ qb -> delete ( $ this -> getClass ( ) , 'obj' ) ; // filter query - let's the finder implementation process the filters to configure query $ query = $ this -> configureQueryBuilder ( $ qb , $ filters ) ; if ( $ query instanceof QueryBuilder ) { $ qb = $ query ; } if ( ! ( $ query instanceof NativeQuery ) ) { // order query if implementation has not done it $ query = $ qb -> getQuery ( ) ; } $ query -> getResult ( ) ; }
Might not be fully functional with the unions.
Might not be fully functional with the unions .