Enumeration support #167

Merged
merged 5 commits into from Nov 13, 2012

Conversation

Projects
None yet
3 participants
Owner

FabioBatSilva commented Jul 21, 2012

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

@beberlei beberlei added a commit that referenced this pull request Nov 13, 2012

@beberlei beberlei Merge pull request #167 from FabioBatSilva/annot-enum
Enumeration support
30b8cea

@beberlei beberlei merged commit 30b8cea into doctrine:master Nov 13, 2012

1 check passed

default The Travis build passed
Details

FabioBatSilva referenced this pull request in doctrine/doctrine2 Nov 13, 2012

Merged

Enumeration support #513

FabioBatSilva deleted the FabioBatSilva:annot-enum branch Jan 13, 2013

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