View Single Post
  #2  
Old 08-10-2015, 03:09 AM
 
Roman Prisiazniuk Roman Prisiazniuk is offline
 

Member
  
Join Date: Jun 2015
Posts: 27
 

Default Re: Adding form to new order details tab

Also I need to add OneToMany relation from OrderItem to OrderItemActivation entity, as I understand I must create decorator

PHP Code:
<?php
    
namespace XLite\Module\Romas\ProductActivation\Model;

    abstract class 
OrderItem extends \XLite\Model\OrderItem implements \XLite\Base\IDecorator
    
{
        
/**
         *
         * @var \Doctrine\Common\Collections\Collection
         *
         * @OneToMany (targetEntity="XLite\Module\Romas\ProductActivation\Model\OrderItemActivation", mappedBy="object", cascade={"all"})
         */
        
protected $productActivations;
    }

Please tell me what should I write in @OneToMany section: how can I set what column in OrderItems table to add?
__________________
xcart5
Reply With Quote