db/SqlBuilder.php
/**
     * Attention: will return NULL if nothing need update
     * @param object/object array $object
     * @param object $ref_object
     * @return SqlBuilder or NULL if nothing need update
     */
will return NULL if nothing need update
@param object/object array $object
@param object $ref_object
@return SqlBuilder or NULL if nothing need update
will return NULL if nothing need update @param object / object array $object @param object $ref_object @return SqlBuilder or NULL if nothing need update
public final function updateObject($object, $ref_object = FALSE) {
        $this->_crud = SqlExecutor::UPDATE;
        $this->_update_sql = FALSE;
        if (is_object($ref_object)) {
            $fields = $this->retrieveUpdatedFields($object, $ref_object, $this->_primary_key_field);
            if (! $fields) {
                return NULL;
            }
            $this->_cru_fields = $fields;
            return $this->withData($object);
        }
        return $this->object2CuFields($object, TRUE);
    }
public final function updateObject ( $ object , $ ref_object = FALSE ) { $ this -> _crud = SqlExecutor :: UPDATE ; $ this -> _update_sql = FALSE ; if ( is_object ( $ ref_object ) ) { $ fields = $ this -> retrieveUpdatedFields ( $ object , $ ref_object , $ this -> _primary_key_field ) ; if ( ! $ fields ) { return NULL ; } $ this -> _cru_fields = $ fields ; return $ this -> withData ( $ object ) ; } return $ this -> object2CuFields ( $ object , TRUE ) ; }
Attention: will return NULL if nothing need update
 @param object/object array $object
 @param object $ref_object
 @return SqlBuilder or NULL if nothing need update
Attention : will return NULL if nothing need update @param object / object array $object @param object $ref_object @return SqlBuilder or NULL if nothing need update