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.

Written by

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

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