[Solar-talk] delete() model branch?

Jeff Surgeson solar at 3hex.com
Fri Apr 27 07:08:50 PDT 2007


Rodrigo

Did you manage to delete a record using new model branch? if so how did you do 
it. When I go $item->delete() it comes back with error as shown at end.

If I comment out the call to checkFocus(), line 1375 in 
Solar_Sql_Model::delete() it deletes record no problem.

Is this as a result of our other little hack to get insert to work? should I 
just leave it commented out until Paul sorts the rest out?

Fatal error: Uncaught exception 'Solar_Exception' 
class::code 'Bulldog_Model_News::ERR_METHOD_NOT_IMPLEMENTED' with 
message 'Method not implemented.' information array ( 'method' 
=> 'checkFocus', 'params' => array ( 0 => 'record', ), ) Stack trace: 
#0 /var/www/localhost/htdocs/libsvn/Solar.php(862): 
Solar::factory('Solar_Exception', Array) 
#1 /var/www/localhost/htdocs/libsvn/Solar/Base.php(244): 
Solar::exception('Bulldog_Model_N...', 'ERR_METHOD_NOT_...', 'Method not 
impl...', Array) 
#2 /var/www/localhost/htdocs/libsvn/Solar/Sql/Model.php(771): 
Solar_Base->_exception('ERR_METHOD_NOT_...', Array) #3 [internal function]: 
Solar_Sql_Model->__call('checkFocus', Array) 
#4 /var/www/localhost/htdocs/libsvn/Solar/Sql/Model.php(1375): 
Bulldog_Model_News->checkFocus('record') 
#5 /var/www/localhost/htdocs/Biodieselsolutions/Bulldog/App/News.php(276): 
Solar_Sql_Model->delete() #6 [internal function]: 
Bulldog_App_News->actionEdit('51') 
#7 /var/www/localhost/htdocs/libsvn/Solar/Controller/Page.php(778): c 
in /var/www/localhost/htdocs/libsvn/Solar.php on line 554

-- 
...........::::::...........
Jeff Surgeson / South Africa


More information about the solar-talk mailing list