If you do not want to write DQL to the controller (this is good), you can put separate functions in your model that simply work with the functionality provided by the extended classes.
For example, if you have a class called User and you need to save it, you could just
class User extends BaseUser //or whatever you want { public function saveNewUser($data) {
So, you have all the functions inside the model, as you would like.
source share