AnsweredAssumed Answered

$bean->save not working

Question asked by drickferreira on Jun 17, 2015
Latest reply on Jun 27, 2016 by John Lassere
Hello guys, i am a sugarcrm newbie... and try to use some tips like this:

But in a logic hook all methods works fine - except $bean->save() - that results a blank screen and error.

A simple example:
$bean = BeanFactory::getBean('accounts', $id);  $bean->name = 'New Name';  $bean->save(); 
If i use :    $bean->db->query('UPDATE accounts SET name="New Name" WHERE id = "'.$id.'"');    this works...