limit of 200 items in new array???

2007-12-04 Thread phalvrson
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

Re: Loop with field() and save() not working as expected

2007-08-11 Thread phalvrson
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; >

Re: Loop with field() and save() not working as expected

2007-08-11 Thread phalvrson
(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

Re: Loop with field() and save() not working as expected

2007-08-11 Thread phalvrson
$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

Loop with field() and save() not working as expected

2007-08-11 Thread phalvrson
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

Re: Loop with select and insert not working as expected

2007-08-11 Thread phalvrson
.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", &

Re: Loop with select and insert not working as expected

2007-08-09 Thread phalvrson
` = 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

Loop with select and insert not working as expected

2007-08-08 Thread phalvrson
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