In the model constructor file model_php5.php
function __construct($id = false, $table = null, $ds = null)
{
.....
$this->id = $id;
}
$id is expected to be an integer. However, even in simple queries, an
array is passed to $id, which causes some weird behavior later on. The
problem is not apparent since table.id field is usually defined as
auto_increment, the data is inserted correctly.
However, in the save() method, the following test will fail and causes
some weird behavior
.
if (empty($this->id)
Does anyone experience similar problem? Or have a solution to it?
Thanks.
- Harry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---