public function getCommerce($force = false)
    {
        if ($this->nb_commerce === null || $force) {
            $this->nb_commerce = null;
            if (!$this->isBuiltIn() && $this->isValueNumeric(NABU_COMMERCE_FIELD_ID)) {
                $nb_commerce = new CNabuCommerce($this->getValue(NABU_COMMERCE_FIELD_ID));
                if ($nb_commerce->isFetched()) {
                    $this->nb_commerce = $nb_commerce;
                }
            }
        }

        return $this->nb_commerce;
    }
public function getCommerce($force = false)
    {
        if ($this->nb_commerce === null || $force) {
            $this->nb_commerce = null;
            if (!$this->isBuiltIn() && $this->isValueNumeric(NABU_COMMERCE_FIELD_ID)) {
                $nb_commerce = new CNabuCommerce($this->getValue(NABU_COMMERCE_FIELD_ID));
                if ($nb_commerce->isFetched()) {
                    $this->nb_commerce = $nb_commerce;
                }
            }
        }

        return $this->nb_commerce;
    }
public function getCommerce ( $ force = false ) { if ( $ this -> nb_commerce === null || $ force ) { $ this -> nb_commerce = null ; if ( ! $ this -> isBuiltIn ( ) && $ this -> isValueNumeric ( NABU_COMMERCE_FIELD_ID ) ) { $ nb_commerce = new CNabuCommerce ( $ this -> getValue ( NABU_COMMERCE_FIELD_ID ) ) ; if ( $ nb_commerce -> isFetched ( ) ) { $ this -> nb_commerce = $ nb_commerce ; } } } return $ this -> nb_commerce ; }
Gets the Commerce instance that owns this object.
@return CNabuCommerce Returns the commerce instance if exists or null if not.
Gets the Commerce instance that owns this object .