View Single Post
  #1  
Old 05-14-2018, 11:23 PM
 
Grempels Grempels is offline
    
Join Date: Aug 2015
Location: Bucharest, Romania
Posts: -1
 

Question Module extend module

Hi, is it possible to create a module that extend another module?
I wanna extend ProductVariant model from ProductVariants module and i keep getting :

Class "XLite\Module\Grempels\Restfully\Model\ProductVari ant" sub class of "XLite\Module\XC\ProductVariants\Model\ProductVari antAbstract" is not a valid entity or mapped super class.

PHP Code:
namespace XLite\Module\Grempels\Restfully\Model;

class 
ProductVariant extends \XLite\Module\XC\ProductVariants\Model\ProductVariant implements \XLite\Base\IDecorator
{
    public function 
getProductId()
    {
        return 
$this->getProduct()->getProductId();
    }


And why ProductVariantAbstract ? I extend ProductVariant.
__________________
xcart 4.6.4
Reply With Quote