diff --git a/lib/Doctrine/ORM/Mapping/AttributeOverride.php b/lib/Doctrine/ORM/Mapping/AttributeOverride.php new file mode 100644 index 000000000..33d31a803 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/AttributeOverride.php @@ -0,0 +1,47 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * Used to override the mapping of a property. + * + * @author Fabio B. Silva + * @since 2.2 + * + * @Annotation + * @Target("ANNOTATION") + */ +final class AttributeOverride implements Annotation +{ + + /** + * The name of the property whose mapping is being overridden. + * + * @var string + */ + public $name; + + /** + * The name of the property whose mapping is being overridden. + * + * @var \Doctrine\ORM\Mapping\Column + */ + public $column; +} \ No newline at end of file diff --git a/lib/Doctrine/ORM/Mapping/AttributeOverrides.php b/lib/Doctrine/ORM/Mapping/AttributeOverrides.php new file mode 100644 index 000000000..6fcb00296 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/AttributeOverrides.php @@ -0,0 +1,41 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * Used to override mappings of multiple properties or fields. + * + * @author Fabio B. Silva + * @since 2.2 + * + * @Annotation + * @Target("CLASS") + */ +final class AttributeOverrides implements Annotation +{ + + /** + * One or more field or property mapping overrides. + * + * @var array<\Doctrine\ORM\Mapping\AttributeOverride> + */ + public $value; + +} \ No newline at end of file