i have the same problem lok at api i think this havent solution now..
On 30 Lis, 22:05, Raph ra...@epoczta.pl wrote:
Well, It's not very elegant solution and I need to make those inserts
in one transaction.
On 13 Lis, 23:47, David Roda davidcr...@gmail.com wrote:
I would probably split
Well, It's not very elegant solution and I need to make those inserts
in one transaction.
On 13 Lis, 23:47, David Roda davidcr...@gmail.com wrote:
I would probably split it into two calls
assuming this code is in your Model1 model:
$this-saveAll($data['Model1'], array('fieldList' =
Any luck figuring this one out?
On Nov 5, 3:15 am, Raph ra...@epoczta.pl wrote:
Hello,
Let's say I have a model Model1 with fields 'name' and 'date' and I
have a Model2 with field 'name'. Model1 is in relation 'hasMany' with
Model2. How should I use saveAll() method with fieldList parameter
I would probably split it into two calls
assuming this code is in your Model1 model:
$this-saveAll($data['Model1'], array('fieldList' = array('date')));
$this-Model2-saveAll($data['Model2'], array('fieldList' =
array('date')));
On Fri, Nov 13, 2009 at 8:52 AM, mattalexx mattal...@gmail.com