// update existing entity; remove from $todos
$defaults = array('id' => $dao->entity_id, 'is_active' => 1); // FIXME: test whether is_active is valid
$params = array_merge($defaults, $todos[$dao->name]['params']);
// update existing entity; remove from $todos
$defaults = array('id' => $dao->entity_id, 'is_active' => 1); // FIXME: test whether is_active is valid
$params = array_merge($defaults, $todos[$dao->name]['params']);