This is probably mostly a PHP question, but I will ask it here in case
there is some hidden CakePHP interaction that I am not aware of.
I have a model called Product and I have a view where I list all of
the products. Each product has a quantity that I want to be update-
able from the list - but
m. You
> should see INSERT when you insert a new record.
> Echo in LogError the result of the the field, also something like this
> is wrong to me :
>
> $this->Household->id =
> $household_id;
>
(in the model.php core
> libs). it uses $this->id for reading.
> I think if you do not call the create() function of the model, you are
> always inserting over the same on.
>
> On Aug 12, 12:50 am, phalvrson <[EMAIL PROTECTED]> wrote:
>
> > Hey Francky, thanks for the
$this->Household->set( array('id' =>
> $this_userid));
>$household_id = $this->HouseHold-
>
> >field("Household.id");
>
> hope this helps
>
> On Aug 11, 8:17 pm, phalvrson <[EMAIL PROTECTED]> wrote:
>
> > I thought I would
I thought I would start a new post since I think I understand the
problem better...
I am looping through a CSV file using fgetcsv and populating a set of
tables from it.
To illustrate, here is a trimmed version of my code to just show
processing for one of the tables, households:
functio
.org/class_model.html#029fcc94396edba60df5648e7086e01d
>
> (Don't know which version are you using)
>
> Regards,
>
> Pablo
>
> On 8/9/07, kionae <[EMAIL PROTECTED]> wrote:
>
>
>
> > Have you tried $household_id = $this->Household->field("id",
&
` = 1
22 SELECT COUNT(id) AS count FROM `students` WHERE `id` = 1
23 SELECT COUNT(id) AS count FROM `households` WHERE `id` = 1
24 SELECT COUNT(id) AS count FROM `students` WHERE `id` = 1
25 SELECT COUNT(id) AS count FROM `households` WHERE `id` = 1
26 SELECT COUNT(id) AS count
I am running CakePHP v 0.2.9, Revision: 4409 and PHP 5
I have a function in a controller whose intent is to read a CSV file
and put the fields from each record into the appropriate database.
Several of the records can have the same Household information, so I
want to only create a new record if t