Override Field Association Mappings In Subclasses ------------------------------------------------- Sometimes there is a need to persist entities but override all or part of the mapping metadata. Sometimes also the mapping to override comes from entities using traits where the traits have mapping metadata. This tutorial explains how to override mapping metadata, i.e. attributes and associations metadata in particular. The example here shows the overriding of a class that uses a trait but is similar when extending a base class as shown at the end of this tutorial. Suppose we have a class ExampleEntityWithOverride. This class uses trait ExampleTrait: .. code-block:: php