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

[SoftDeleteable] Add support for non-\DateTime fields #2115

Conversation

tobias-93
Copy link
Contributor

While Timestampable has nice support for many types of date-fields, it was lacking in SoftDeleteable. In this PR, I reuse the logic already available in the Timestampable extension to provide the timestamp in the SoftDeleteable for the database field.

@tobias-93 tobias-93 force-pushed the soft-deleteable-fix-non-datetime-support branch 3 times, most recently from 7a24387 to 106b390 Compare April 22, 2020 15:53
@tobias-93 tobias-93 force-pushed the soft-deleteable-fix-non-datetime-support branch from 106b390 to 4b13db4 Compare April 22, 2020 15:54
CHANGELOG.md Outdated Show resolved Hide resolved
@AkenRoberts
Copy link
Member

Thank you @tobias-93. Just the one request to update the changelog. Also I don't see a CI build, so when you push that change hopefully the test suite will run.

@tobias-93
Copy link
Contributor Author

Thanks for the comment @AkenRoberts. I have changed it, however the 'support' was already there: https://github.com/Atlantic18/DoctrineExtensions/blob/e55a6727052f91834a968937c93b6fb193be8fb6/lib/Gedmo/SoftDeleteable/Mapping/Validator.php#L23 but it was not working.

@AkenRoberts AkenRoberts merged commit d95ee68 into doctrine-extensions:master May 16, 2020
@AkenRoberts
Copy link
Member

Thank you again. 🎉

@aelfannir
Copy link

Great, i'm looking for this, tnx!

@AkenRoberts
Copy link
Member

@aelfannir Make sure to use the 3.0-dev tag if you'd like to try this out. It will be in the 3.0 major release once it's complete.

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

Successfully merging this pull request may close these issues.

4 participants