With Doctrine it is possible to define custom accessors and mutators to use in your Doctrine models. This is possible with the hasAccessor() and hasMutator() mapping methods. Or, you can define both the mutator and accessor in one call using the hasAccessorMutator() method.