Re: How to save information from multiple tables at once?

2015-09-14 Thread rumble
If your tables have correct associations, then it would be saved correctly 
by calling 

$this->Table1->Table2->save($data)

I recommend you to take a look at the blog example/tutorial. 



On Thursday, August 13, 2015 at 8:37:34 AM UTC, Weslley Carlos wrote:
>
> Good afternoon. 
> I'm using CakePHP 3 a short time. I'm trying to create a registration 
> application lots.
> In my database, I have two tables that are related: lots and addresses. 
> The table addresses relates to other tables that form the complete register 
> an address (countries, states, etc ..). Using bake at present by signing a 
> new lot, he brings a box on the form to select the id of the address. What 
> I would like is that by signing a new lot, I could make the register of the 
> respective address it together. I've tried to read the documentation, but I 
> can not move. Could someone give me tips which way to go?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


How to save information from multiple tables at once?

2015-08-13 Thread Weslley Carlos
Good afternoon. 
I'm using CakePHP 3 a short time. I'm trying to create a registration 
application lots.
In my database, I have two tables that are related: lots and addresses. The 
table addresses relates to other tables that form the complete register an 
address (countries, states, etc ..). Using bake at present by signing a new 
lot, he brings a box on the form to select the id of the address. What I 
would like is that by signing a new lot, I could make the register of the 
respective address it together. I've tried to read the documentation, but I 
can not move. Could someone give me tips which way to go?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.