Friday, April 1, 2011

Re: 1 form 2 models - how to validate without savingAll?

http://www.dereuromark.de/2010/06/20/validating-multiple-models-at-once/


On 1 Apr., 09:44, netusco <ernestcon...@gmail.com> wrote:
> hi ryandesign,
>
> thanks for pointing me to this wizard..
>
> I had a look and I saw on the function _validateData and in the example that
> it's using a formula like this
>
> var $uses = array('User','Profile');
> $this->User->set($this->data);
> $this->Profile->set($this->
> data);
> if ($this->User->validates() && $this->Profile->validates()) {
>
> which I had also tried without success what could be doing so?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: