Esempio n. 1
0
 /**
  * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
  * @param \Magento\Sales\Model\ResourceModel\Attribute $attribute
  * @param \Magento\SalesSequence\Model\Manager $sequenceManager
  * @param Snapshot $entitySnapshot
  * @param \Magento\Framework\Model\ResourceModel\Db\VersionControl\RelationComposite $entityRelationComposite
  * @param Validator $validator
  * @param string $connectionName
  */
 public function __construct(\Magento\Framework\Model\ResourceModel\Db\Context $context, Snapshot $entitySnapshot, \Magento\Framework\Model\ResourceModel\Db\VersionControl\RelationComposite $entityRelationComposite, \Magento\Sales\Model\ResourceModel\Attribute $attribute, \Magento\SalesSequence\Model\Manager $sequenceManager, Validator $validator, $connectionName = null)
 {
     $this->validator = $validator;
     parent::__construct($context, $entitySnapshot, $entityRelationComposite, $attribute, $sequenceManager, $connectionName);
 }
Esempio n. 2
0
 /**
  * @param \Magento\Framework\Model\ModelResource\Db\Context $context
  * @param Attribute $attribute
  * @param Manager $sequenceManager
  * @param Snapshot $entitySnapshot
  * @param RelationComposite $entityRelationComposite
  * @param StateHandler $stateHandler
  * @param string $connectionName
  */
 public function __construct(\Magento\Framework\Model\ModelResource\Db\Context $context, Snapshot $entitySnapshot, RelationComposite $entityRelationComposite, Attribute $attribute, Manager $sequenceManager, StateHandler $stateHandler, $connectionName = null)
 {
     $this->stateHandler = $stateHandler;
     parent::__construct($context, $entitySnapshot, $entityRelationComposite, $attribute, $sequenceManager, $connectionName);
 }