Skip Navigation

Using constructors with Doctrine entities

withinboredom.info Symfony/Doctrine’s Docs has caused more bugs than anything else.

Symfony and Doctrine’s documentation has a slight flaw: they don’t use constructors for DTOs.

Symfony/Doctrine’s Docs has caused more bugs than anything else.

The article title is a little clickbaity, but basically, Doctrine and Symfony documentation don't mention that you can use constructor almost anywhere in the documentation.

0
PHP @lemmy.ml Rikudou_Sage @lemmings.world

Using constructors with Doctrine entities

1 0

Using constructors with Doctrine entities

-1 0
0 comments