Anyone, please? I tried both execute and save for the insert, but it
always gets executed last, after my selects
the code resides in a component

// update request
$rqs =& new RequestStatus();
$rqs->addStatus($requestid,'request_submitted');

// get the request data
$req =& new Request();
$r = $req->search(null, 'simple', null,$requestid,null,3);
$r = $r[0];


it's very annoying, i dont see what i might be doing wrong. Google
only revealed an un-answered message (on the same problem) to this
group from 2007.

thanks a lot,
andrew

On Nov 14, 7:58 pm, pigeon <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> i have a cakePHP 1.1 app that, at a point, creates a record on a model
> (B) that is associated with another model (A) through "A has many B"
> then does a find on A. I've noticed that the new record in B does not
> show up on the find's result array from A, and checking debug revealed
> that the INSERT query that is earlier in the code then the find
> (SELECT), it gets executed LAST.
>
> How can i change this behaviour..?
>
> many thanks,
> andrew
--~--~---------~--~----~------------~-------~--~----~
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