symfony-cmf / sonata-phpcr-admin-integration-bundle

Symfony CMF sonata PHPCR admin implementations
https://cmf.symfony.com
5 stars 20 forks source link

Evaluate links for descriptor is broken #131

Open ElectricMaxxx opened 6 years ago

ElectricMaxxx commented 6 years ago

this: https://github.com/symfony-cmf/sonata-phpcr-admin-integration-bundle/blob/master/src/Description/SonataEnhancer.php#L81 can not work. No idea why i fixed it that way, maybe cause the test doesn't match real admin names. Something like:

$linkKey = substr($code, strlen($admin->getCode()) + 1);

looks more valid. So we should fix it and write more meaningfull tests for that case.