i wonder whats the correct way of finding objects from the database?
i know there's
$em->find()
$em->createQuery()
i guess createQuery
will be more like prepared statements thus more secure?
how do i set named parameters in DQL?
$em->createQuery('select u from \Entities\Users u WHERE u.name = :name');