DDC-836: Bug with proxies #1033

Closed
opened 2026-01-22 12:59:26 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 12, 2010).

Jira issue originally created by user divastator:

Hello guys. I'm using Doctrine for about a three month now and about a week ago I ran at some problem, that I can't fix, and I think that it's a bug... When I'm trying to find some object it returns a Proxy of that object, wich is great, but it always returns a proxy even if there's no object. So when I try to make verification if this object exist ("if($object)") it pass because there's always a object there.And this leeds to fatal error - "Entity was not found'.So my queston is - Is this really a bug, or I can figure out how to work with proxies? Thank you

Originally created by @doctrinebot on GitHub (Oct 12, 2010). Jira issue originally created by user divastator: Hello guys. I'm using Doctrine for about a three month now and about a week ago I ran at some problem, that I can't fix, and I think that it's a bug... When I'm trying to find some object it returns a Proxy of that object, wich is great, but it always returns a proxy even if there's no object. So when I try to make verification if this object exist ("if($object)") it pass because there's always a object there.And this leeds to fatal error - "Entity was not found'.So my queston is - Is this really a bug, or I can figure out how to work with proxies? Thank you
admin added the Bug label 2026-01-22 12:59:26 +01:00
admin closed this issue 2026-01-22 12:59:28 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 29, 2010):

Comment created by @beberlei:

How do you try to find the object? Can you show some workflow?

@doctrinebot commented on GitHub (Oct 29, 2010): Comment created by @beberlei: How do you try to find the object? Can you show some workflow?
Author
Owner

@doctrinebot commented on GitHub (Oct 29, 2010):

Comment created by @beberlei:

Are you still using Beta2? There is a Beta4 already btw :-)

@doctrinebot commented on GitHub (Oct 29, 2010): Comment created by @beberlei: Are you still using Beta2? There is a Beta4 already btw :-)
Author
Owner

@doctrinebot commented on GitHub (Oct 30, 2010):

Comment created by romanb:

We need more information and code examples, ideally a test case.

@doctrinebot commented on GitHub (Oct 30, 2010): Comment created by romanb: We need more information and code examples, ideally a test case.
Author
Owner

@doctrinebot commented on GitHub (Jun 5, 2011):

Comment created by @beberlei:

No feedback was given.

@doctrinebot commented on GitHub (Jun 5, 2011): Comment created by @beberlei: No feedback was given.
Author
Owner

@doctrinebot commented on GitHub (Jun 5, 2011):

Issue was closed with resolution "Cannot Reproduce"

@doctrinebot commented on GitHub (Jun 5, 2011): Issue was closed with resolution "Cannot Reproduce"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1033