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

Should it generate a new slug every update to the slug fields? #5

Open
cammanderson opened this issue Aug 8, 2011 · 1 comment
Open

Comments

@cammanderson
Copy link
Collaborator

Whether the object is new or for update, the DoctrineSluggableBundle creates a new slug based on the fields. This could potentially break a link to the slug if one of those fields are updated in the future. Should this be intended behaviour? Maybe there needs to be some sort of way of having it configurable so that if it is new it generates, but if is an update maybe not? Maybe the client could configure a new slug? This could be completely handled at the Entity level I suppose?

@samjarrett
Copy link
Owner

Hey Cam,

This should be only happening on the prePersist event, which is before it's committed for the first time only - so it wouldn't be called on later updates to the entity.... or am I wrong?

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

2 participants