[DCOM-183] [GH-262] Fixed travis build Created: 11/Mar/13  Updated: 08/Sep/13  Resolved: 11/Mar/13

Status: Resolved
Project: Doctrine Common
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3, 2.4

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


 Description   

This issue is created automatically through a Github pull request on behalf of pborreli:

Url: https://github.com/doctrine/common/pull/262

Message:

since composer/composer#1005 composer updates --dev by default.



 Comments   
Comment by Benjamin Eberlei [ 11/Mar/13 ]

A related Github Pull-Request [GH-262] was closed
https://github.com/doctrine/common/pull/262





[DCOM-101] Implement FilesystemCache Created: 08/Jun/12  Updated: 25/Jun/12  Resolved: 25/Jun/12

Status: Resolved
Project: Doctrine Common
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3

Type: New Feature Priority: Major
Reporter: Guilherme Blanco Assignee: Fabio B. Silva
Resolution: Fixed Votes: 0
Labels: None


 Description   

Implement FilesystemCache, storing var exported pieces that could be loaded on demand.



 Comments   
Comment by Fabio B. Silva [ 25/Jun/12 ]

Fixed By : https://github.com/doctrine/common/commit/8df9cdf3b921a3b59bbba51d5ba9063509ef6a1a





[DCOM-179] Underscore at the end of a label is not working with annotations Created: 03/Mar/13  Updated: 06/Dec/13  Resolved: 06/Dec/13

Status: Resolved
Project: Doctrine Common
Component/s: Annotations
Affects Version/s: 2.3
Fix Version/s: 2.3

Type: Bug Priority: Minor
Reporter: exoon Assignee: Guilherme Blanco
Resolution: Fixed Votes: 0
Labels: None
Environment:

apache2, php 5.4, mysql



 Description   

use Zend\Form\Annotation;

[...]

works:

* @Annotation\Options({"label":Namespace\Entity::LABEL})

or

* @Annotation\Options({"label":Namespace\Entity::_LABEL})

or

* @Annotation\Options({"label":Namespace\Entity::LA_BEL})

works not:

* @Annotation\Options({"label":Namespace\Entity::LABEL_})

Error message:

/vendor/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationException.php:52

[Semantical Error] Couldn't find constant Namespace\Entity\::LABEL, property ...

The _ at the end is missing.



 Comments   
Comment by Marco Pivetta [ 03/Dec/13 ]

Provided a hotfix at https://github.com/doctrine/annotations/pull/19

Comment by Guilherme Blanco [ 06/Dec/13 ]

Implemented: https://github.com/doctrine/annotations/commit/0500074e2af1b3c9c6d6ea03d38fbd9f5ee7da71





[DCOM-94] Support for constants on annotation reader Created: 06/Feb/12  Updated: 15/Mar/12  Resolved: 15/Mar/12

Status: Resolved
Project: Doctrine Common
Component/s: Annotations
Affects Version/s: None
Fix Version/s: 2.3

Type: New Feature Priority: Minor
Reporter: Fabio B. Silva Assignee: Fabio B. Silva
Resolution: Fixed Votes: 1
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})
*/


 Comments   
Comment by gabriel sancho [ 22/Feb/12 ]

file doctrine-2.2.0/Doctrine/Common/Lexer.php
line 214
@patch : para poder usar constantes

  • definidas con define como param de las anotaciones
  • las constantes deben empesar por '_' para evitar conflictos con 'false' y 'true'
  • esto solo soporta constantes en los valores de las anotaciones
  • ej:

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; }
Comment by Fabio B. Silva [ 22/Feb/12 ]

hello gabriel,

I have a pull request opened : https://github.com/doctrine/common/pull/104

feel free to join us and comment ...
in inglesh please

Comment by Fabio B. Silva [ 15/Mar/12 ]

Fixed : https://github.com/doctrine/common/commit/970912eec0a1371e03de7010556d9280c26d8083





Generated at Fri Dec 19 13:48:30 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.