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

Add missing timestamp properties to the File model #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamelso
Copy link

When I tried to add this bundle to a project, Doctrine was complaining that the createdAt property does not exist on the File entity.

The pre-persist and pre-update hooks attempts to set createdAt and updatedAt to the current datetime, but these properties are not declared, nor are they mapped. The pull request fixes that.

Note that I've made them nullable because surprisingly no-one has reported this as an issue yet, so I wanted to keep some backwards compatibility.

@cedric-g
Copy link
Collaborator

cedric-g commented Dec 2, 2015

Hi, thanks to point that out, but maybe we should just remove these pre-persist and pre-update hooks. The dates are not use in the current process, and if we add them to the Doctrine ORM mapping, we also need to map them for Doctrine ODM and Propel to be consistent.

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.

None yet

2 participants