Model->save only seems to register after process is terminated?

2008-01-05 Thread Gene
I have the following function being called multiple times in a controller: function _link_node($lat, $lng, $line_id){ $result = $this->Node->query('SELECT COUNT(*) FROM nodes'); var_dump($result); $result = $this->Node->find("lat = $lat AND

Row inserted by Model->save() not showing up when doing a Model->find() afterwards? But shows up after script terminates... what gives?

2008-01-05 Thread Gene
I have the following function being called multiple times in a controller: function _link_node($lat, $lng, $line_id){ $result = $this->Node->query('SELECT COUNT(*) FROM nodes'); var_dump($result); $result = $this->Node->find("lat = $lat AND

Re: Row inserted by Model->save() not showing up when doing a Model->find() afterwards? But shows up after script terminates... what gives?

2008-01-06 Thread Gene
You guys are both awesome. Saved me a ton of head ache. Thanks! On Jan 6, 2:53 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 6, 8:18 am, Gene <[EMAIL PROTECTED]> wrote: > > > > > I have the following function being called multiple times in a > > controlle