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

created_at fields #4

Open
beoboo opened this issue May 25, 2011 · 2 comments · May be fixed by #33
Open

created_at fields #4

beoboo opened this issue May 25, 2011 · 2 comments · May be fixed by #33

Comments

@beoboo
Copy link

beoboo commented May 25, 2011

How can I disable the validator on "created_at" fields, when creating a new object?

@toovy
Copy link

toovy commented Jan 24, 2012

Having the same problem! Disabling the validators in the "Forms" does not work. I quickly hacked in two lines in the files

sfDoctrineRestGeneratorPlugin/data/generator/sfDoctrineRestGenerator/default/parts/validateCreate

$validators = $this->getCreateValidators();
unset($validators['created_at']); // new
unset($validators['updated_at']); // new
$params = $this->parsePayload($payload);

After that a

symfony cc

and it works - but that is not a nice solution. If anyone Xavier could point us to a better direction, it would be nice.

Merci.

@jib27
Copy link

jib27 commented Aug 17, 2012

Hello,

Did someone found any solutions on this point ?

Thanks

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 a pull request may close this issue.

3 participants