How do you map 2 objects into a table? The A object contains the B object #5970

Closed
opened 2026-01-22 15:23:43 +01:00 by admin · 4 comments
Owner

Originally created by @acodercat on GitHub (May 20, 2018).

Q A
Version 2.5.0

Support Question

How do you map 2 objects into a table? The A object contains the B object

Originally created by @acodercat on GitHub (May 20, 2018). <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ----- | Version | 2.5.0 ### Support Question How do you map 2 objects into a table? The A object contains the B object
admin closed this issue 2026-01-22 15:23:44 +01:00
Author
Owner

@acodercat commented on GitHub (May 20, 2018):

please

@acodercat commented on GitHub (May 20, 2018): please
Author
Owner

@AlessandroMinoccheri commented on GitHub (May 20, 2018):

Can you please describe more your problem with a proper example?

@AlessandroMinoccheri commented on GitHub (May 20, 2018): Can you please describe more your problem with a proper example?
Author
Owner

@acodercat commented on GitHub (May 21, 2018):

I hava 2 objects is A and B. php class A { private $objB; private $name; } class B { private $age } $objB hava I wanna A and B store in one table. for example :A table hava name and age field.

@acodercat commented on GitHub (May 21, 2018): I hava 2 objects is A and B. ```php class A { private $objB; private $name; } class B { private $age } ``` $objB hava I wanna A and B store in one table. for example :A table hava name and age field.
Author
Owner

@Ocramius commented on GitHub (May 21, 2018):

Please look at https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/inheritance-mapping.html then 👍

@Ocramius commented on GitHub (May 21, 2018): Please look at https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/inheritance-mapping.html then 👍
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5970