mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
How do you map 2 objects into a table? The A object contains the B object #5970
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @acodercat on GitHub (May 20, 2018).
Support Question
How do you map 2 objects into a table? The A object contains the B object
@acodercat commented on GitHub (May 20, 2018):
please
@AlessandroMinoccheri commented on GitHub (May 20, 2018):
Can you please describe more your problem with a proper example?
@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.@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 👍