No, you will always get a Proxy object (or Entity if it's already loaded), 
never null. 

--  
Jasper N. Brouwer
(@jaspernbrouwer)


On 14 January 2015 at 16:26:13, Nima Sadjadi ([email protected]) wrote:
> Thanks.
> With second snippet I always still use
> if ($item !== null)
> then use the rest of work otherwise I shows a message and exit. This if
> statement is still possible to validate $item when using getReference() ?


-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to