Hello...

There is a problem in validating data in my application.
Let me explain:

I used a model "Employee" belongsTo "Office"
office_id is the foreignKey

When I'm trying to insert data from the cake-generated form, it
correctly inserts the office_id (because I set it as Select box).
But, when I'm trying to insert data directly through $this->data,

Example:  $this->data = Array('office_id' => '1055','name' =>
'abc','description'=>'some text');

it doesn't checks whether the office_id is present in the Office
model. (In my case, there is no office_id = 1055 in offices table)

Is there any method to solve this problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to