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

reset sequence on purge-with-truncate ? #52

Closed
ptitcub opened this issue Jul 19, 2012 · 1 comment
Closed

reset sequence on purge-with-truncate ? #52

ptitcub opened this issue Jul 19, 2012 · 1 comment

Comments

@ptitcub
Copy link

ptitcub commented Jul 19, 2012

Hi,

With postgresql, I notice that sequences are not reset with purge-with-truncate option.

It could be very usefull when we run tests with fixtures...
Is it plan to next improvement or is there tip to make it ?

thx

@ptitcub
Copy link
Author

ptitcub commented Jul 19, 2012

I think the solution is to simply use reference (ie . $this->addReference('myref', $myobject);) and not handle sequence id...

sorry for the noise ;)

@ptitcub ptitcub closed this as completed Jul 19, 2012
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

1 participant