[Solar-talk] load / refresh Revision 3088
Jeff Surgeson
solar at 3hex.com
Sat Apr 12 04:08:04 CDT 2008
Hi all
With the changes from load() to refresh() in the inserted and updated methods
unchanged fields are no longer available, so when I do this in my add action:
$this->_events = Solar::factory('Bulldog_Model_Events');
$cols = array('venue', 'description');
$item = $this->_events->fetchNew();
$data = $this->_request->post('events', array());
$item->load($data, $cols);
if ($this->_isProcess('save') && $item->save()) {
$this->_session->setFlash('success_added', true);
$this->_redirect("events/edit/{$item->id}");
}
$item->id is null.
Is this an issue or do I just find another way to do this?
--
...........::::::...........
Jeff Surgeson / South Africa
More information about the Solar-talk
mailing list