DEV Community


Discussion on: Choosing PHP in 2018

xowap profile image
Rémy 🤖

I didn't think I'd take the defense of Doctrine one day but in the case of cross-DB foreign key the reason is pretty simple: it makes no sense at all.

Maybe your application can't get around it but if you ask me, solving this at ORM level is like the most convoluted and misleading way of doing it. Just saying.

You'd better treat it as an external service like an API or something in that mood...

Just my 2 cents