Closed Mikulas closed 9 years ago
I like the current syntax more. self::CONSTANT
is also supported in {default ...}
Currently, it's implemented as parseLiteral function (https://github.com/nextras/orm/blob/8f6954949205362d770c87e4959f8ce6491c2f28/src/Entity/Reflection/AnnotationParser.php#L439-L469), but AnnotationParser will be radically refactored and such functionality will be shared for other macros too. Also, after implementing #106 (follow up #107) I want to be more strict and do not add more magic. The magic brings also complexity for https://github.com/nextras/orm-intellij which I'm trying to develop :)
So, closing. Thanks for understanding.
The first one throws
Undefined offset: 1
as it's not supported byEntity/Reflection/AnnotationParser
. The second one is ok but too verbose.I wrote this by accident knowing it's not supproted. But it looks pretty good and is kind of intuitive. Since the
*
wildcard is magical in itself, this could be a handy addition.Should I send a pull request or are there other complications?