Skip to content

Instantly share code, notes, and snippets.

@e-vural
Last active August 29, 2015 14:27
Show Gist options
  • Save e-vural/558c36de88b23578c638 to your computer and use it in GitHub Desktop.
Save e-vural/558c36de88b23578c638 to your computer and use it in GitHub Desktop.
$soft_delete_konular=$em->createQueryBuilder()
->select('s')
->from('CoreCommonBundle:Konu','s')
->where('s.isSoftDeleted =:delete')
->andWhere('s.gonderici =:gonderici OR 's.alici =:alici')
göndericisi x kişisi olan veya alıcısı x kişisi olan demek için OR araya konur
->setParameter('delete',1)
->setParameter('gonderici',$kimlik)
->setParameter('alici',$kimlik)
->getQuery()
->getResult();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment