CoursesAI WorkshopCompaniesPricingBlogNewsletter
  • Courses
  • AI Workshop
  • Companies
  • Pricing
  • Blog
  • Newsletter
Subscribe
  • Courses
  • Companies
  • Communities
  • Blog
  • Gift card
  • Newsletter
  • Help
  • Shop
  • ConfAiBot
  • Contact
  • Legal notice
  • General conditions
  • Privacy policy
  • Cookies policy

Course of Inheritance Mapping in PHP [Infrastructure Design]

Standard
Javier FerrerRafa Gómez

By Javier Ferrer y Rafa Gómez – Backend

Inheritance can be good. In this course, we see how to take that concept to the database.

Go to course

💸 First lesson available without registration 💸

One of the first concepts you learn while programming is inheritance. When you start working professionally, you are told that inheritance is bad and that it’s better not to use it, but inheritance can be good.

In the course, we explore when inheritance can make sense, but above all, how we can reflect that data modeling in our database.

In this course we see:

  • 👪 When inheritance is beneficial
  • 🐘 How to apply Inheritance Mapping with Doctrine in PHP
  • 🐢 How to ensure that Inheritance Mapping does not affect performance

In the course, we examine a real case: How we model Codely courses.

Videos of the course

  • 🪄 Why we do use inheritance
  • 🗂️ Folder structure when using inheritance in Domain

  • 👤 Inheritance Mapping in 1 table with Doctrine (Single Table Inheritance)
  • ✅ Add testing to your repository with Inheritance Mapping
  • 👥 Avoid nulls: Inheritance Mapping with one table per subclass (Class Table Inheritance)
  • 🗣️ Avoid nulls and JOINS: Single table per subclass (Concrete Table Inheritance)

  • 🌊 Problems when deleting entities in Inheritance Mapping
  • 🐢 How Inheritance Mapping affects performance
  • 🛑 Add cache in Redis

  • 🎯 Summary: Single vs Class vs Concrete class inheritance mapping
  • 🤟 Conclusions and next steps
Go to course

Related courses

Standard
Clean transactions [Debate]

🤲 Clean transactions [Debate]

Javier FerrerRafa Gómez

Debate where we look at alternatives on how to apply transactions.

See course
Standard
Object-Oriented Programming Best Practices

🪂 Object-Oriented Programming Best Practices

Javier FerrerRafa Gómez

Apply good OOP practices in your code to make it more maintainable.

See course
Standard
Projections in Wallapop

🎦 Projections in Wallapop

Rafa Gómez

Learn how Wallapop manages projections in its systems.

See course
See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Essential programming courses to build a solid foundation
Popular

standard

24,92 €
Discount vs monthly of 49 €
Annual payment of 299 €
per month
  • Main catalog to master writing maintainable, scalable, and testable code
  • Receive job offers verified by Codely
  • Company invoice
  • Accumulate renewal discounts

premium

41,58 €
Discount vs monthly of 89 €
Annual payment of 499 €
per month
  • Exclusive AI courses to keep you always up to date
  • Early access to new courses
  • Discount on workshops
  • Receive job offers verified by Codely
  • Company invoice
  • Accumulate renewal discounts

We won't increase the price while your subscription is active

SubscribeSign in