Enumeration support #167

Merged
merged 5 commits into from Nov 13, 2012

2 participants

@FabioBatSilva
Doctrine member

This patch adds support for @Enum.

I think that is very useful to avoid wrong data input in annotations like @InheritanceType or @ManyToMany#fetch

Cheers..

@guilhermeblanco guilhermeblanco commented on the diff Jul 21, 2012
lib/Doctrine/Common/Annotations/Annotation/Enum.php
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the MIT license. For more information, see
+ * <http://www.doctrine-project.org>.
+ */
+
+namespace Doctrine\Common\Annotations\Annotation;
+
+/**
+ * Annotation that can be used to signal to the parser
+ * to check the available values during the parsing process.
+ *
+ * @since 2.4
+ * @author Fabio B. Silva <fabio.bat.silva@gmail.com>
+ *
+ * @Annotation
@guilhermeblanco
Doctrine member
guilhermeblanco added a line comment Jul 21, 2012

Missing ({, no?

@FabioBatSilva
Doctrine member
FabioBatSilva added a line comment Jul 21, 2012

Fixed,

Thanks @guilhermeblanco.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@beberlei beberlei merged commit 30b8cea into doctrine:master Nov 13, 2012

1 check passed

Details default The Travis build passed
@FabioBatSilva FabioBatSilva referenced this pull request in doctrine/doctrine2 Nov 13, 2012
Merged

Enumeration support #513

@FabioBatSilva FabioBatSilva deleted the FabioBatSilva:annot-enum branch Jan 13, 2013
@doctrinebot doctrinebot referenced this pull request in doctrine/doctrine2 Dec 6, 2015
Closed

DDC-2142: [GH-513] Enumeration support #2831

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment