示例#1
0
 /**
  * {@inheritdoc}
  */
 public function create()
 {
     /** TODO: temporary fix while problem with hasDataChanges flag not solved. MAGETWO-30324 */
     $object = parent::create();
     $object->setDataChanges(true);
     return $object;
 }
示例#2
0
 /**
  * Initialize the builder
  *
  * @param \Magento\Framework\Api\ObjectFactory $objectFactory
  * @param \Magento\Framework\Api\MetadataServiceInterface $metadataService
  * @param \Magento\Framework\Api\AttributeDataBuilder $attributeValueBuilder
  * @param \Magento\Framework\Reflection\DataObjectProcessor $objectProcessor
  * @param \Magento\Framework\Reflection\TypeProcessor $typeProcessor
  * @param \Magento\Framework\Serialization\DataBuilderFactory $dataBuilderFactory
  * @param \Magento\Framework\ObjectManager\ConfigInterface $objectManagerConfig
  * @param string|null $modelClassInterface
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  */
 public function __construct(\Magento\Framework\Api\ObjectFactory $objectFactory, \Magento\Framework\Api\MetadataServiceInterface $metadataService, \Magento\Framework\Api\AttributeDataBuilder $attributeValueBuilder, \Magento\Framework\Reflection\DataObjectProcessor $objectProcessor, \Magento\Framework\Reflection\TypeProcessor $typeProcessor, \Magento\Framework\Serialization\DataBuilderFactory $dataBuilderFactory, \Magento\Framework\ObjectManager\ConfigInterface $objectManagerConfig, $modelClassInterface = null)
 {
     parent::__construct($objectFactory, $metadataService, $attributeValueBuilder, $objectProcessor, $typeProcessor, $dataBuilderFactory, $objectManagerConfig, 'Magento\\Customer\\Api\\Data\\AttributeMetadataInterface');
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function create()
 {
     $object = parent::create();
     $object->setDataChanges(true);
     return $object;
 }