Symfony 5 : Inheritance Mapping / Polymorphic relationship? (Example)

Veröffentlicht am: 11 Mai 2020
auf dem Kanal: OverSeas Media
12,073
170

Documentation: https://www.doctrine-project.org/proj...

This video answers (hopefully) a question that a viewer was asking, How can i use the same comments entity with different other entities using a single relationship, this is where a polymorphic relationship is used, and in the case of Symfony or Doctrine we use what's called inheritance mapping.

This video does the following:
Create A Comment, Post, Video and parent entity called Comment.
Setup the inheritance type and identifiers for the targets.
Create a comments for both Post and Video and fetching them.

Github repository: https://github.com/konshensx16/doctri...

If you have any question please leave them down in the comments below, i will do my best and try to answer them.


Auf dieser Seite können Sie das Online-Video Symfony 5 : Inheritance Mapping / Polymorphic relationship? (Example) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer OverSeas Media 11 Mai 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 12,073 Mal angesehen und es wurde von 170 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!