Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemExistsException when creating a post with the title and date matching another record #41

Open
alebo opened this issue Oct 3, 2013 · 4 comments

Comments

@alebo
Copy link

alebo commented Oct 3, 2013

No description provided.

@dantleech
Copy link
Member

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

@alebo
Copy link
Author

alebo commented Oct 4, 2013

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.

@lsmith77
Copy link
Member

lsmith77 commented Oct 6, 2013

@alebo can you dig into this? we are currently focusing on other Bundles for the first stable release.

@dantleech
Copy link
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants