Where not empty with Doctrine

$authors = $queryBuilder
->select('author')
->from('pages')
->where($queryBuilder->expr()->neq('author','""'))
->execute()->fetchAll();

Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.