blog-bundle
blog-bundle copied to clipboard
ItemExistsException when creating a post with the title and date matching another record
odd - it should add an auto_incrementing number to the post title: https://github.com/symfony-cmf/BlogBundle/blob/master/Resources/config/routing/autoroute_default.yml#L52
As far as I understand that auto_incrementing setting applies only to the route naming. And the exception is thrown due to the content node names.
@alebo can you dig into this? we are currently focusing on other Bundles for the first stable release.
@alebo I think your right - in that case what we probably need is something like the Doctrine ORM UniqueEntity validator:
https://github.com/symfony/DoctrineBridge/blob/master/Validator/Constraints/UniqueEntity.php
in the DoctrinePhpcrOdmBundle:
https://github.com/doctrine/DoctrinePHPCRBundle/tree/master/Validator/Constraints