Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.3
-
Component/s: Annotations
-
Labels:None
Description
Would be nice get support for constants on annotation reader.
Usage :
/**
* @SomeAnnotation(PHP_EOL)
* @SomeAnnotation(SomeClass::SOME_VALUE)
* @SomeAnnotation({SomeClass::VALUE1,SomeClass::VALUE2})
* @SomeAnnotation({SomeClass::SOME_KEY = SomeClass::SOME_VALUE})
*/
Activity
Fabio B. Silva
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 2.3 [ 10183 ] | |
| Resolution | Fixed [ 1 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 13421 ] | jira-feedback2 [ 17928 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 17928 ] | jira-feedback3 [ 19891 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DCOM-94, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
file doctrine-2.2.0/Doctrine/Common/Lexer.php
line 214
@patch : para poder usar constantes
define('_db_clase_05', '"test.Clase_05"');
{ ... }...
/** @Table(name=_db_clase_05)
... */
class Clase_05
if(is_string($match[0]) && ($match[0][0] == '_') && defined($match[0]))
{ $aux_val = constant($match[0]); $match[0] = $aux_val; }