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
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
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
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
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
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
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
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
)
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]
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...
>
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] =
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:
>
> --
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'));?>
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
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
15 matches
Mail list logo