src/ShopBundle/objects/db/TShopArticle.class.php
public function &GetFieldShopStockMessage()
    {
        $oItem = $this->GetFromInternalCache('oLookupshop_stock_message_id');
        if (null === $oItem) {
            $oItem = $this->getShopStockMessageDataAccess()->getStockMessage($this->fieldShopStockMessageId, $this->iLanguageId);
            if (null !== $oItem) {
                $this->SetInternalCache('oLookupshop_stock_message_id', $oItem);
            }
        }
        if (null !== $oItem && false === $oItem->GetArticle()) {
            $oItem->SetArticle($this);
        }

        if (null !== $oItem && false === is_array($oItem->sqlData)) {
            $oItem = null;
        }

        return $oItem;
    }
public function &GetFieldShopStockMessage()
    {
        $oItem = $this->GetFromInternalCache('oLookupshop_stock_message_id');
        if (null === $oItem) {
            $oItem = $this->getShopStockMessageDataAccess()->getStockMessage($this->fieldShopStockMessageId, $this->iLanguageId);
            if (null !== $oItem) {
                $this->SetInternalCache('oLookupshop_stock_message_id', $oItem);
            }
        }
        if (null !== $oItem && false === $oItem->GetArticle()) {
            $oItem->SetArticle($this);
        }

        if (null !== $oItem && false === is_array($oItem->sqlData)) {
            $oItem = null;
        }

        return $oItem;
    }
public function & GetFieldShopStockMessage ( ) { $ oItem = $ this -> GetFromInternalCache ( 'oLookupshop_stock_message_id' ) ; if ( null === $ oItem ) { $ oItem = $ this -> getShopStockMessageDataAccess ( ) -> getStockMessage ( $ this -> fieldShopStockMessageId , $ this -> iLanguageId ) ; if ( null !== $ oItem ) { $ this -> SetInternalCache ( 'oLookupshop_stock_message_id' , $ oItem ) ; } } if ( null !== $ oItem && false === $ oItem -> GetArticle ( ) ) { $ oItem -> SetArticle ( $ this ) ; } if ( null !== $ oItem && false === is_array ( $ oItem -> sqlData ) ) { $ oItem = null ; } return $ oItem ; }
the method gets the shopstockmessage for the current article.

@return TdbShopStockMessage|null
the method gets the shopstockmessage for the current article .