diff --git a/lib/Doctrine/ORM/Mapping/Annotation.php b/lib/Doctrine/ORM/Mapping/Annotation.php new file mode 100644 index 000000000..dd8f4efee --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/Annotation.php @@ -0,0 +1,24 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +interface Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/ChangeTrackingPolicy.php b/lib/Doctrine/ORM/Mapping/ChangeTrackingPolicy.php new file mode 100644 index 000000000..a9cc3725a --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/ChangeTrackingPolicy.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class ChangeTrackingPolicy implements Annotation +{ + /** @var string */ + public $value; +} diff --git a/lib/Doctrine/ORM/Mapping/Column.php b/lib/Doctrine/ORM/Mapping/Column.php new file mode 100644 index 000000000..5f7dd7f64 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/Column.php @@ -0,0 +1,46 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class Column implements Annotation +{ + /** @var string */ + public $name; + /** @var mixed */ + public $type = 'string'; + /** @var integer */ + public $length; + /** @var integer */ + public $precision = 0; // The precision for a decimal (exact numeric) column (Applies only for decimal column) + /** @var integer */ + public $scale = 0; // The scale for a decimal (exact numeric) column (Applies only for decimal column) + /** @var boolean */ + public $unique = false; + /** @var boolean */ + public $nullable = false; + /** @var array */ + public $options = array(); + /** @var string */ + public $columnDefinition; +} diff --git a/lib/Doctrine/ORM/Mapping/DiscriminatorColumn.php b/lib/Doctrine/ORM/Mapping/DiscriminatorColumn.php new file mode 100644 index 000000000..aec011538 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/DiscriminatorColumn.php @@ -0,0 +1,36 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class DiscriminatorColumn implements Annotation +{ + /** @var string */ + public $name; + /** @var string */ + public $type; + /** @var integer */ + public $length; + /** @var mixed */ + public $fieldName; // field name used in non-object hydration (array/scalar) +} diff --git a/lib/Doctrine/ORM/Mapping/DiscriminatorMap.php b/lib/Doctrine/ORM/Mapping/DiscriminatorMap.php new file mode 100644 index 000000000..8505cf92f --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/DiscriminatorMap.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class DiscriminatorMap implements Annotation +{ + /** @var array */ + public $value; +} diff --git a/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php b/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php index 7f25ecbb1..290fc6529 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php +++ b/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php @@ -17,379 +17,38 @@ * . */ -namespace Doctrine\ORM\Mapping; - -interface Annotation {} - - -/* Annotations */ - -/** - * @Annotation - * @Target("CLASS") - */ -final class Entity implements Annotation { - /** @var string */ - public $repositoryClass; - /** @var boolean */ - public $readOnly = false; -} - -/** - * @Annotation - * @Target("CLASS") - */ -final class MappedSuperclass implements Annotation { - /** @var string */ - public $repositoryClass; -} - -/** - * @Annotation - * @Target("CLASS") - */ -final class InheritanceType implements Annotation { - /** @var string */ - public $value; -} - -/** - * @Annotation - * @Target("CLASS") - */ -final class DiscriminatorColumn implements Annotation { - /** @var string */ - public $name; - /** @var string */ - public $type; - /** @var integer */ - public $length; - /** @var mixed */ - public $fieldName; // field name used in non-object hydration (array/scalar) -} - -/** - * @Annotation - * @Target("CLASS") - */ -final class DiscriminatorMap implements Annotation { - /** @var array */ - public $value; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class Id implements Annotation {} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class GeneratedValue implements Annotation { - /** @var string */ - public $strategy = 'AUTO'; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class Version implements Annotation {} - -/** - * @Annotation - * @Target({"PROPERTY","ANNOTATION"}) - */ -final class JoinColumn implements Annotation { - /** @var string */ - public $name; - /** @var string */ - public $referencedColumnName = 'id'; - /** @var boolean */ - public $unique = false; - /** @var boolean */ - public $nullable = true; - /** @var mixed */ - public $onDelete; - /** @var string */ - public $columnDefinition; - /** @var string */ - public $fieldName; // field name used in non-object hydration (array/scalar) -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class JoinColumns implements Annotation { - /** @var array */ - public $value; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class Column implements Annotation { - /** @var string */ - public $name; - /** @var mixed */ - public $type = 'string'; - /** @var integer */ - public $length; - /** @var integer */ - public $precision = 0; // The precision for a decimal (exact numeric) column (Applies only for decimal column) - /** @var integer */ - public $scale = 0; // The scale for a decimal (exact numeric) column (Applies only for decimal column) - /** @var boolean */ - public $unique = false; - /** @var boolean */ - public $nullable = false; - /** @var array */ - public $options = array(); - /** @var string */ - public $columnDefinition; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class OneToOne implements Annotation { - /** @var string */ - public $targetEntity; - /** @var string */ - public $mappedBy; - /** @var string */ - public $inversedBy; - /** @var array */ - public $cascade; - /** @var string */ - public $fetch = 'LAZY'; - /** @var boolean */ - public $orphanRemoval = false; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class OneToMany implements Annotation { - /** @var string */ - public $mappedBy; - /** @var string */ - public $targetEntity; - /** @var array */ - public $cascade; - /** @var string */ - public $fetch = 'LAZY'; - /** @var boolean */ - public $orphanRemoval = false; - /** @var string */ - public $indexBy; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class ManyToOne implements Annotation { - /** @var string */ - public $targetEntity; - /** @var array */ - public $cascade; - /** @var string */ - public $fetch = 'LAZY'; - /** @var string */ - public $inversedBy; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class ManyToMany implements Annotation { - /** @var string */ - public $targetEntity; - /** @var string */ - public $mappedBy; - /** @var string */ - public $inversedBy; - /** @var array */ - public $cascade; - /** @var string */ - public $fetch = 'LAZY'; - /** @var string */ - public $indexBy; -} - -/** - * @Annotation - * @Target("ALL") - * @todo check available targets - */ -final class ElementCollection implements Annotation { - /** @var string */ - public $tableName; -} - -/** - * @Annotation - * @Target("CLASS") - */ -final class Table implements Annotation { - /** @var string */ - public $name; - /** @var string */ - public $schema; - /** @var array */ - public $indexes; - /** @var array */ - public $uniqueConstraints; -} - -/** - * @Annotation - * @Target("ANNOTATION") - */ -final class UniqueConstraint implements Annotation { - /** @var string */ - public $name; - /** @var array */ - public $columns; -} - -/** - * @Annotation - * @Target("ANNOTATION") - */ -final class Index implements Annotation { - /** @var string */ - public $name; - /** @var array */ - public $columns; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class JoinTable implements Annotation { - /** @var string */ - public $name; - /** @var string */ - public $schema; - /** @var array */ - public $joinColumns = array(); - /** @var array */ - public $inverseJoinColumns = array(); -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class SequenceGenerator implements Annotation { - /** @var string */ - public $sequenceName; - /** @var integer */ - public $allocationSize = 1; - /** @var integer */ - public $initialValue = 1; -} - -/** - * @Annotation - * @Target("CLASS") - */ -final class ChangeTrackingPolicy implements Annotation { - /** @var string */ - public $value; -} - -/** - * @Annotation - * @Target("PROPERTY") - */ -final class OrderBy implements Annotation { - /** @var array */ - public $value; -} - -/** - * @Annotation - * @Target("CLASS") - */ -final class NamedQueries implements Annotation { - /** @var array */ - public $value; -} - -/** - * @Annotation - * @Target("ANNOTATION") - */ -final class NamedQuery implements Annotation { - /** @var string */ - public $name; - /** @var string */ - public $query; -} - -/* Annotations for lifecycle callbacks */ - -/** - * @Annotation - * @Target("CLASS") - */ -final class HasLifecycleCallbacks implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PrePersist implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PostPersist implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PreUpdate implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PostUpdate implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PreRemove implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PostRemove implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PostLoad implements Annotation {} - -/** - * @Annotation - * @Target("METHOD") - */ -final class PreFlush implements Annotation {} +require_once __DIR__.'/../Annotation.php'; +require_once __DIR__.'/../Entity.php'; +require_once __DIR__.'/../MappedSuperclass.php'; +require_once __DIR__.'/../InheritanceType.php'; +require_once __DIR__.'/../DiscriminatorColumn.php'; +require_once __DIR__.'/../DiscriminatorMap.php'; +require_once __DIR__.'/../Id.php'; +require_once __DIR__.'/../GeneratedValue.php'; +require_once __DIR__.'/../Version.php'; +require_once __DIR__.'/../JoinColumn.php'; +require_once __DIR__.'/../JoinColumns.php'; +require_once __DIR__.'/../Column.php'; +require_once __DIR__.'/../OneToOne.php'; +require_once __DIR__.'/../OneToMany.php'; +require_once __DIR__.'/../ManyToOne.php'; +require_once __DIR__.'/../ManyToMany.php'; +require_once __DIR__.'/../ElementCollection.php'; +require_once __DIR__.'/../Table.php'; +require_once __DIR__.'/../UniqueConstraint.php'; +require_once __DIR__.'/../Index.php'; +require_once __DIR__.'/../JoinTable.php'; +require_once __DIR__.'/../SequenceGenerator.php'; +require_once __DIR__.'/../ChangeTrackingPolicy.php'; +require_once __DIR__.'/../OrderBy.php'; +require_once __DIR__.'/../NamedQueries.php'; +require_once __DIR__.'/../NamedQuery.php'; +require_once __DIR__.'/../HasLifecycleCallbacks.php'; +require_once __DIR__.'/../PrePersist.php'; +require_once __DIR__.'/../PostPersist.php'; +require_once __DIR__.'/../PreUpdate.php'; +require_once __DIR__.'/../PostUpdate.php'; +require_once __DIR__.'/../PreRemove.php'; +require_once __DIR__.'/../PostRemove.php'; +require_once __DIR__.'/../PostLoad.php'; +require_once __DIR__.'/../PreFlush.php'; diff --git a/lib/Doctrine/ORM/Mapping/ElementCollection.php b/lib/Doctrine/ORM/Mapping/ElementCollection.php new file mode 100644 index 000000000..f12717419 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/ElementCollection.php @@ -0,0 +1,31 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("ALL") + * @todo check available targets + */ +final class ElementCollection implements Annotation +{ + /** @var string */ + public $tableName; +} diff --git a/lib/Doctrine/ORM/Mapping/Entity.php b/lib/Doctrine/ORM/Mapping/Entity.php new file mode 100644 index 000000000..075a5ecec --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/Entity.php @@ -0,0 +1,32 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class Entity implements Annotation +{ + /** @var string */ + public $repositoryClass; + /** @var boolean */ + public $readOnly = false; +} diff --git a/lib/Doctrine/ORM/Mapping/GeneratedValue.php b/lib/Doctrine/ORM/Mapping/GeneratedValue.php new file mode 100644 index 000000000..8558d21c3 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/GeneratedValue.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class GeneratedValue implements Annotation +{ + /** @var string */ + public $strategy = 'AUTO'; +} diff --git a/lib/Doctrine/ORM/Mapping/HasLifecycleCallbacks.php b/lib/Doctrine/ORM/Mapping/HasLifecycleCallbacks.php new file mode 100644 index 000000000..a65fbb522 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/HasLifecycleCallbacks.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class HasLifecycleCallbacks implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/Id.php b/lib/Doctrine/ORM/Mapping/Id.php new file mode 100644 index 000000000..a670e3ddb --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/Id.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class Id implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/Index.php b/lib/Doctrine/ORM/Mapping/Index.php new file mode 100644 index 000000000..e0a2db36c --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/Index.php @@ -0,0 +1,32 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("ANNOTATION") + */ +final class Index implements Annotation +{ + /** @var string */ + public $name; + /** @var array */ + public $columns; +} diff --git a/lib/Doctrine/ORM/Mapping/InheritanceType.php b/lib/Doctrine/ORM/Mapping/InheritanceType.php new file mode 100644 index 000000000..009f3abf3 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/InheritanceType.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class InheritanceType implements Annotation +{ + /** @var string */ + public $value; +} diff --git a/lib/Doctrine/ORM/Mapping/JoinColumn.php b/lib/Doctrine/ORM/Mapping/JoinColumn.php new file mode 100644 index 000000000..bf5c51d07 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/JoinColumn.php @@ -0,0 +1,42 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target({"PROPERTY","ANNOTATION"}) + */ +final class JoinColumn implements Annotation +{ + /** @var string */ + public $name; + /** @var string */ + public $referencedColumnName = 'id'; + /** @var boolean */ + public $unique = false; + /** @var boolean */ + public $nullable = true; + /** @var mixed */ + public $onDelete; + /** @var string */ + public $columnDefinition; + /** @var string */ + public $fieldName; // field name used in non-object hydration (array/scalar) +} diff --git a/lib/Doctrine/ORM/Mapping/JoinColumns.php b/lib/Doctrine/ORM/Mapping/JoinColumns.php new file mode 100644 index 000000000..7cf663bc7 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/JoinColumns.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class JoinColumns implements Annotation +{ + /** @var array */ + public $value; +} diff --git a/lib/Doctrine/ORM/Mapping/JoinTable.php b/lib/Doctrine/ORM/Mapping/JoinTable.php new file mode 100644 index 000000000..75f8e271b --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/JoinTable.php @@ -0,0 +1,36 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class JoinTable implements Annotation +{ + /** @var string */ + public $name; + /** @var string */ + public $schema; + /** @var array */ + public $joinColumns = array(); + /** @var array */ + public $inverseJoinColumns = array(); +} diff --git a/lib/Doctrine/ORM/Mapping/ManyToMany.php b/lib/Doctrine/ORM/Mapping/ManyToMany.php new file mode 100644 index 000000000..1e2ae06c0 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/ManyToMany.php @@ -0,0 +1,40 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class ManyToMany implements Annotation +{ + /** @var string */ + public $targetEntity; + /** @var string */ + public $mappedBy; + /** @var string */ + public $inversedBy; + /** @var array */ + public $cascade; + /** @var string */ + public $fetch = 'LAZY'; + /** @var string */ + public $indexBy; +} diff --git a/lib/Doctrine/ORM/Mapping/ManyToOne.php b/lib/Doctrine/ORM/Mapping/ManyToOne.php new file mode 100644 index 000000000..1bc83769c --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/ManyToOne.php @@ -0,0 +1,36 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class ManyToOne implements Annotation +{ + /** @var string */ + public $targetEntity; + /** @var array */ + public $cascade; + /** @var string */ + public $fetch = 'LAZY'; + /** @var string */ + public $inversedBy; +} diff --git a/lib/Doctrine/ORM/Mapping/MappedSuperclass.php b/lib/Doctrine/ORM/Mapping/MappedSuperclass.php new file mode 100644 index 000000000..639d21642 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/MappedSuperclass.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class MappedSuperclass implements Annotation +{ + /** @var string */ + public $repositoryClass; +} diff --git a/lib/Doctrine/ORM/Mapping/NamedQueries.php b/lib/Doctrine/ORM/Mapping/NamedQueries.php new file mode 100644 index 000000000..04e0ebfaa --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/NamedQueries.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class NamedQueries implements Annotation +{ + /** @var array */ + public $value; +} diff --git a/lib/Doctrine/ORM/Mapping/NamedQuery.php b/lib/Doctrine/ORM/Mapping/NamedQuery.php new file mode 100644 index 000000000..656a4eabf --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/NamedQuery.php @@ -0,0 +1,32 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("ANNOTATION") + */ +final class NamedQuery implements Annotation +{ + /** @var string */ + public $name; + /** @var string */ + public $query; +} diff --git a/lib/Doctrine/ORM/Mapping/OneToMany.php b/lib/Doctrine/ORM/Mapping/OneToMany.php new file mode 100644 index 000000000..b4d8ad3f8 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/OneToMany.php @@ -0,0 +1,40 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class OneToMany implements Annotation +{ + /** @var string */ + public $mappedBy; + /** @var string */ + public $targetEntity; + /** @var array */ + public $cascade; + /** @var string */ + public $fetch = 'LAZY'; + /** @var boolean */ + public $orphanRemoval = false; + /** @var string */ + public $indexBy; +} diff --git a/lib/Doctrine/ORM/Mapping/OneToOne.php b/lib/Doctrine/ORM/Mapping/OneToOne.php new file mode 100644 index 000000000..4baa12196 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/OneToOne.php @@ -0,0 +1,40 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class OneToOne implements Annotation +{ + /** @var string */ + public $targetEntity; + /** @var string */ + public $mappedBy; + /** @var string */ + public $inversedBy; + /** @var array */ + public $cascade; + /** @var string */ + public $fetch = 'LAZY'; + /** @var boolean */ + public $orphanRemoval = false; +} diff --git a/lib/Doctrine/ORM/Mapping/OrderBy.php b/lib/Doctrine/ORM/Mapping/OrderBy.php new file mode 100644 index 000000000..c28f11042 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/OrderBy.php @@ -0,0 +1,30 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class OrderBy implements Annotation +{ + /** @var array */ + public $value; +} diff --git a/lib/Doctrine/ORM/Mapping/PostLoad.php b/lib/Doctrine/ORM/Mapping/PostLoad.php new file mode 100644 index 000000000..169bb4904 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PostLoad.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PostLoad implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/PostPersist.php b/lib/Doctrine/ORM/Mapping/PostPersist.php new file mode 100644 index 000000000..5b5baed12 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PostPersist.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PostPersist implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/PostRemove.php b/lib/Doctrine/ORM/Mapping/PostRemove.php new file mode 100644 index 000000000..4798e26e8 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PostRemove.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PostRemove implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/PostUpdate.php b/lib/Doctrine/ORM/Mapping/PostUpdate.php new file mode 100644 index 000000000..f7e753973 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PostUpdate.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PostUpdate implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/PreFlush.php b/lib/Doctrine/ORM/Mapping/PreFlush.php new file mode 100644 index 000000000..f5eb08636 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PreFlush.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PreFlush implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/PrePersist.php b/lib/Doctrine/ORM/Mapping/PrePersist.php new file mode 100644 index 000000000..c3827006e --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PrePersist.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PrePersist implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/PreRemove.php b/lib/Doctrine/ORM/Mapping/PreRemove.php new file mode 100644 index 000000000..adcb837d7 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PreRemove.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PreRemove implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/PreUpdate.php b/lib/Doctrine/ORM/Mapping/PreUpdate.php new file mode 100644 index 000000000..2afd38120 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/PreUpdate.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("METHOD") + */ +final class PreUpdate implements Annotation +{ +} diff --git a/lib/Doctrine/ORM/Mapping/SequenceGenerator.php b/lib/Doctrine/ORM/Mapping/SequenceGenerator.php new file mode 100644 index 000000000..be3d700f9 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/SequenceGenerator.php @@ -0,0 +1,34 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class SequenceGenerator implements Annotation +{ + /** @var string */ + public $sequenceName; + /** @var integer */ + public $allocationSize = 1; + /** @var integer */ + public $initialValue = 1; +} diff --git a/lib/Doctrine/ORM/Mapping/Table.php b/lib/Doctrine/ORM/Mapping/Table.php new file mode 100644 index 000000000..a68e3673b --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/Table.php @@ -0,0 +1,36 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("CLASS") + */ +final class Table implements Annotation +{ + /** @var string */ + public $name; + /** @var string */ + public $schema; + /** @var array */ + public $indexes; + /** @var array */ + public $uniqueConstraints; +} diff --git a/lib/Doctrine/ORM/Mapping/UniqueConstraint.php b/lib/Doctrine/ORM/Mapping/UniqueConstraint.php new file mode 100644 index 000000000..db9f8fd41 --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/UniqueConstraint.php @@ -0,0 +1,32 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("ANNOTATION") + */ +final class UniqueConstraint implements Annotation +{ + /** @var string */ + public $name; + /** @var array */ + public $columns; +} diff --git a/lib/Doctrine/ORM/Mapping/Version.php b/lib/Doctrine/ORM/Mapping/Version.php new file mode 100644 index 000000000..313e7519c --- /dev/null +++ b/lib/Doctrine/ORM/Mapping/Version.php @@ -0,0 +1,28 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * @Annotation + * @Target("PROPERTY") + */ +final class Version implements Annotation +{ +}