[DCOM-278] [GH-358] travis: PHP 7.0 nightly added, allowed failure Created: 02/Mar/15  Updated: 02/Mar/15  Resolved: 02/Mar/15

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

Type: Improvement Priority: Major
Reporter: Doctrine Bot Assignee: Marco Pivetta
Resolution: Fixed Votes: 0
Labels: php-7.0


 Description   

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

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

Message:



 Comments   
Comment by Doctrine Bot [ 02/Mar/15 ]

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

Comment by Doctrine Bot [ 02/Mar/15 ]

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





[DCOM-277] [GH-357] Custom namespace separators for SymfonyFileLocator Created: 24/Feb/15  Updated: 25/Feb/15  Resolved: 25/Feb/15

Status: Resolved
Project: Doctrine Common
Component/s: Class Loading
Affects Version/s: None
Fix Version/s: 2.5.0

Type: New Feature Priority: Major
Reporter: Doctrine Bot Assignee: Marco Pivetta
Resolution: Fixed Votes: 0
Labels: file-locator, mapping, metadata, separator


 Description   

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

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

Message:

As a Symofony user I'm tired of storaging dozens of yml metadata files within `config\doctrine` folder as a plain list. Current implementation of `SymfonyFileLocator` fails to loopback class name due to automatic convertation extra classname separators behind default `Entity` prefix to dots, so placing yaml metadata files into nested folders does not work at all.

This also covers some other people needs as I see by
http://stackoverflow.com/questions/14530782/symfony2-doctrine-entity-subdirectories
http://stackoverflow.com/questions/20998622/is-anybody-knows-how-organize-orm-yml-for-symfony-2-x

I've implemented custom namespace separator value to be substitued when `SymfonyFileLocator` lookup classname and converts filename to classname, allowing to store entity mapping with the same structure are placed, i.e with `DIRECTORY_SEPARATOR` used

Foo\Bar => config/doctrine/Foo/Bar.orm.yml
Baz => config/doctrine/Baz.orm.yml

etc.

I've added a bunch of test to be sure I've not broken something, with 3 examples of usage.

  • Classic - dot (`.`) separator. This is default for keeping BC
  • `DIRECTORY_SEPARATOR` - for representing namespaces as `PSR-4` / `PSR-0` structure with according prefix
  • Underscore (`_`) separator - as another way, which corresponds to `PSR-0` autoloading but as same list as with dots

Local (Windows, PHP 5.6) and Travis tests are passed

https://travis-ci.org/scaytrase/doctrine-common/builds/51995201



 Comments   
Comment by Doctrine Bot [ 24/Feb/15 ]

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

Comment by Doctrine Bot [ 25/Feb/15 ]

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





Generated at Tue Mar 03 16:47:45 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.