public function save($trace = false)
    {
        $retval = parent::save($trace);

        $this->nb_attachment_list->iterate(
            function ($key, CNabuIContactProspectAttachment $nb_attachment) use ($retval) {
                $retval |= $nb_attachment->save();
                return true;
            }
        );

        return $retval;
    }
public function save($trace = false)
    {
        $retval = parent::save($trace);

        $this->nb_attachment_list->iterate(
            function ($key, CNabuIContactProspectAttachment $nb_attachment) use ($retval) {
                $retval |= $nb_attachment->save();
                return true;
            }
        );

        return $retval;
    }
public function save ( $ trace = false ) { $ retval = parent :: save ( $ trace ) ; $ this -> nb_attachment_list -> iterate ( function ( $ key , CNabuIContactProspectAttachment $ nb_attachment ) use ( $ retval ) { $ retval |= $ nb_attachment -> save ( ) ; return true ; } ) ; return $ retval ; }
Overrides the parent method to save modified subordinated instances.
@param bool $trace If true, traces the query.
@return bool Returns true if success
Overrides the parent method to save modified subordinated instances .