Hi all
i'm having a weird issue with Cake 2.2 model's afterSave()
i need to update some csv files after any order has been saved or updated.
to achieve this i made a function "processCsv" wich is called by my
afterSave().
but my finds() called afterSave() are returning the data without the last
updates. why?
here's my code
//in controller
$this->Order->save($this->data);
//in Order model
public function afterSave ($created) {
$this->processCsv($this->data["Order"]["id"]);
}
public function processCsv ($id) {
pr($this->findById($id));
//my code goes here
}
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php