I’ve found in general there’s usually a better reuse method than extends / inheritance — it’s a pretty blunt tool which tends to cause issues later on.

So in the general case I’d personally still avoid it. If you think your domain and code benefit from it, then go for it.

Other things to consider are traits, or still composition, but depending on a generic doctrine entity repository you write instead of the manager directly.

--

--

--

PHP developer. http://t.co/olQvZ91Lo4

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Quaile

Adam Quaile

PHP developer. http://t.co/olQvZ91Lo4

More from Medium

The function accepts an array of zero or more strings that has a NULL in the last location.

Walking away

The Proust Questionnaire (2021)

Alexa as your personal sysadmin