Re: Another saveAll() problem

2010-02-23 Thread Nico
Not bad for a first post ;) I seem to remember reading about that problem the other day, so it was fresh in my mind. Glad it helped. On Feb 23, 7:04 pm, WebbedIT wrote: > How the heck did Nico know you had a beforeSave() method created in > the model?  Wow, he's a mentalist, wonder if he'll give

Re: Another saveAll() problem

2010-02-23 Thread WebbedIT
How the heck did Nico know you had a beforeSave() method created in the model? Wow, he's a mentalist, wonder if he'll give me next week's Lottery numbers? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message b

Re: Another saveAll() problem

2010-02-23 Thread Lucca Mordente
Both the data and associations are correct. My mistake was on what Nico said. I've just forgot to return true inside beforeSave() method! Thank you all guys! On 23 fev, 03:30, Nico wrote: > Another thing to check is the beforeSave() method to make sure that > returns true. Are any of your othe

Re: Another saveAll() problem

2010-02-23 Thread Nico
Another thing to check is the beforeSave() method to make sure that returns true. Are any of your other saves to the database working? On Feb 23, 7:48 am, Jeremy Burns wrote: > Have you checked to see if your data array is missing any required fields? If > so, it would still pass validation but

Re: Another saveAll() problem

2010-02-23 Thread WebbedIT
You state that > the associations follow: > > Paper hasMany Chart > Paper hasMany Table > Paper hasMany Document Yet your model defines hasOne associations, and all associate to the same model without any info on their foreign key, conditions etc? You need to clarify your associations are correct

Re: Another saveAll() problem

2010-02-22 Thread Jeremy Burns
Have you checked to see if your data array is missing any required fields? If so, it would still pass validation but fail at the database level. Also, is your validation right (does it match what the database expects)? Jeremy Burns jeremybu...@me.com On 22 Feb 2010, at 21:06, Lucca Mordente wro

Another saveAll() problem

2010-02-22 Thread Lucca Mordente
Hi there. I'm having problems saving a model and it's related data. a $this->Paper->saveAll($this->data); call returns false. and later I figured out that a simple $this->Paper->Document- >save($this->data) is failing too. the data is set correctly and there are no validationErrors. any suggest

HABT many saveAll problem with multiple child records,

2010-02-03 Thread waseem gondal
hi, I have scenario , where i want to save a meeting, and meeting has relation with topic habtm, Tables: Meeting, Topic, MeetingsTopics Meeting HABTM with Topic this sample data is working fine, [Meeting] => Array ( [date] => 2010-02-10 [Priority] => 1 )

Re: saveAll Problem

2009-10-16 Thread Edinei Luis Cipriani
Ok, image hasMany property and property belongsTo image? Em 16/10/2009, às 18:31, ilcaduceo escreveu: > > This is the output: > > Array > ( >[Property] => Array >( >[title] => lorem ipsum >[descrizione] => Lorem ipsum dolor sit amet... >[prezzo]

Re: saveAll Problem

2009-10-16 Thread ilcaduceo
I've found an error in the model associations, thanks for give me inspiration ;) On 16 Ott, 23:31, ilcaduceo wrote: > This is the output: > > Array > ( >     [Property] => Array >         ( >             [title] => lorem ipsum >             [descrizione] => Lorem ipsum dolor sit amet... >      

Re: saveAll Problem

2009-10-16 Thread ilcaduceo
This is the output: Array ( [Property] => Array ( [title] => lorem ipsum [descrizione] => Lorem ipsum dolor sit amet... [prezzo] => 50 [metratura] => 120 [affitto] => 0 [zones_id] => 2 [types_id] =

Re: saveAll Problem

2009-10-16 Thread Edinei L. Cipriani
Please, debug($this->data); 2009/10/16 ilcaduceo > > I have a problem with the saveAll function. There are two models, > Property and Images: > > Property HasMany Image > Image belongTo Property > > Also I have this form: > > --

saveAll Problem

2009-10-16 Thread ilcaduceo
I have a problem with the saveAll function. There are two models, Property and Images: Property HasMany Image Image belongTo Property Also I have this form: -- create('Property', array('type' => 'file'));?>

SaveAll problem?

2009-07-23 Thread sijo jose
Hi all, Well I have been stuck up for some time with this problem. Well I have Registration page in my application. The Registration process can be done in ways. 1. When a new Customer comes directly for registration. 2. When a Lead becomes a Customer. My Registration Objec

saveAll Problem

2008-07-09 Thread andruu
Hello, I am having a problem using the saveAll method. I am building a simple message board application and when trying to use saveAll it hangs for a few seconds and then shows a white screen with no error. I have 2 models, ForumThread and ForumPost (ForumPost belongs to ForumThread and ForumThr