[Solar-talk] load / refresh Revision 3088
Paul M Jones
pmjones at paul-m-jones.com
Sat Apr 12 08:11:59 CDT 2008
On Apr 12, 2008, at 04:08 , Jeff Surgeson wrote:
> 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?
It was a bug -- fixed as of 5 mins ago in SVN [3105]. Thanks for
pointing it out. :-)
-- pmj
More information about the Solar-talk
mailing list