PHP DoctrineORM one-to-many self-referencing association 014 HD
PHP Doctrine ORM entity one to many mapping, or self-referencing association for parent-child data connections between entities. (see shortcuts below to key points) Adam Culp of Beachcasts php videos walks through how to create entity associations using php annotations with DoctrineORM for web development. This php programming tutorial contains in-depth instructions to help create a one-to-many association that self-refrences the same entity for a parent-child link between database records. Doctrine ORM is the most popular PHP ORM used by php developers. This is part of the playlist: https://www.youtube.com/playlist?list=PL6_nF0awZMoMol4RPLf99WIZuoJ3l87oG Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others! Key Topics: - Update entity to contain one-to-many associations - Implement parent-child data connections - Query data of self-referencing database records Errata: Let me know if you notice anything that should be errata Associated Links: https://www.doctrine-project.org/projects/orm.html - Doctrine ORM project https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/association-mapping.html#one-to-many-self-referencing - one-to-many, self-referencing https://getexpressive.org/ - Expressive microframework site Timeline: 00:00 Video Intro 02:25 See Banks Entity, and database using PhpStorm panel 03:10 Show how data facilitates association 04:10 Highlight common use cases for one-to-many assocations 07:40 Define the parent virtual data field in the entity 08:58 Define the children virtual data field in the entity 10:15 Import Doctrine ORM collections for usage with children 11:00 Create a constructor and instantiate the children collection object 12:25 Create getter for children association data 13:00 Create setter for parent association data 15:34 Update handler to obtain associated parent data needed for child record creation 17:22 We create a new record with self-referencing associated records Other Beachcasts PHP tech videos you might find interesting: Critical programming issues preventing a PHP 7 upgrade https://youtu.be/z13glyDnm6s Behat for beginners functional REST API testing tutorial https://youtu.be/nFNGDhyFrm4 Doctrine ORM one-to-many bi-directional association https://youtu.be/4nEdBDxBc1w PHP Mess Detector static analysis to find PHP code smells https://youtu.be/8fEfHESrK5E 10 reasons to become a consultant in a consulting business https://youtu.be/J7gpMYAKmDM Zend Framework becomes Laminas project at Linux Foundation https://youtu.be/CEIO90ocEDI 10 bad things about consulting https://youtu.be/ELE0G3e7h3c How to get lines of code in PHP https://youtu.be/HpC-Cvxj6oY Make a List handler middleware https://youtu.be/VLqavHCFv6g Make a Delete handler middleware https://youtu.be/3nLbQfMk99k Make an Update handler middleware https://youtu.be/3Zcq5Jjz1Po Use UUID with Doctrine ORM for DB keys https://youtu.be/SYuLwMwSIpg Make a Create handler middlware https://youtu.be/FIYh-VIWUko Automate Hypermedia crea
Похожие видео
Показать еще