DDC-1442: SimpleObject hydratation mode with inheritance #1807

Closed
opened 2026-01-22 13:26:41 +01:00 by admin · 6 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 20, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user armetiz:

SimpleObject hydratation mode with inheritance, it appear that it's not working.

The problem start in SimpleObjectHydrator.php line 129 when calling UnitOfWork->createEntity(NULL, Array, Array).

Originally created by @doctrinebot on GitHub (Oct 20, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user armetiz: SimpleObject hydratation mode with inheritance, it appear that it's not working. The problem start in SimpleObjectHydrator.php line 129 when calling UnitOfWork->createEntity(NULL, Array, Array).
admin added the Bug label 2026-01-22 13:26:41 +01:00
admin closed this issue 2026-01-22 13:26:42 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 20, 2011):

Comment created by @beberlei:

in what context are you using simpleobjecthydrator?

@doctrinebot commented on GitHub (Oct 20, 2011): Comment created by @beberlei: in what context are you using simpleobjecthydrator?
Author
Owner

@doctrinebot commented on GitHub (Oct 20, 2011):

Comment created by armetiz:

It was just for testing this feature.

I have build this queryBuilder :

$queryBuilder   = $entityManager->createQueryBuilder();
$queryBuilder->select ("user");
$queryBuilder->from ("Entity\User", "user");
$queryBuilder->where ("user.idUser = 916");
$queryBuilder->getQuery()->execute (array(), \Doctrine\ORM\AbstractQuery::HYDRATE_SIMPLEOBJECT);

Entity\User extends an other Entity.

@doctrinebot commented on GitHub (Oct 20, 2011): Comment created by armetiz: It was just for testing this feature. I have build this queryBuilder : ``` $queryBuilder = $entityManager->createQueryBuilder(); $queryBuilder->select ("user"); $queryBuilder->from ("Entity\User", "user"); $queryBuilder->where ("user.idUser = 916"); $queryBuilder->getQuery()->execute (array(), \Doctrine\ORM\AbstractQuery::HYDRATE_SIMPLEOBJECT); ``` Entity\User extends an other Entity.
Author
Owner

@doctrinebot commented on GitHub (Oct 27, 2011):

Comment created by @beberlei:

Can you maybe show how the User and Other entity are mapped? It seems your discriminator map could contain a problem, i couldnt reproduce it with our Joined Table Inheritance test entities so far.

@doctrinebot commented on GitHub (Oct 27, 2011): Comment created by @beberlei: Can you maybe show how the User and Other entity are mapped? It seems your discriminator map could contain a problem, i couldnt reproduce it with our Joined Table Inheritance test entities so far.
Author
Owner

@doctrinebot commented on GitHub (Nov 8, 2011):

Comment created by @asm89:

Lowered the priority of this issue until we receive more feedback.

@doctrinebot commented on GitHub (Nov 8, 2011): Comment created by @asm89: Lowered the priority of this issue until we receive more feedback.
Author
Owner

@doctrinebot commented on GitHub (Nov 18, 2011):

Comment created by @beberlei:

This was fixed recently by throwing an error message telling the user that his discriminator mapping is wrong.

@doctrinebot commented on GitHub (Nov 18, 2011): Comment created by @beberlei: This was fixed recently by throwing an error message telling the user that his discriminator mapping is wrong.
Author
Owner

@doctrinebot commented on GitHub (Nov 18, 2011):

Issue was closed with resolution "Fixed"

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

No dependencies set.

Reference: doctrine/archived-orm#1807