13 use Magento\SalesSequence\Model\MetaFactory;
48 DatabaseContext $context,
65 $this->
_init(
'sales_sequence_meta',
'meta_id');
78 $meta = $this->metaFactory->create();
85 'entity_type = :entity_type AND store_id = :store_id' 90 $this->
load($meta, $metaId);
105 $this->resourceProfile->loadActiveProfile($object->getId())
120 if (!$object->getData(
'active_profile') instanceof ModelProfile) {
123 "The entity sequence profile wasn't added to the meta active profile. " 124 .
"Verify the profile and try again." 129 if (!$object->getData(
'entity_type')
130 || $object->getData(
'store_id') ===
null 131 || !$object->getData(
'sequence_table')
144 $profile = $object->getData(
'active_profile')
145 ->setMetaId($object->getId());
146 $this->resourceProfile->save($profile);
_init($mainTable, $idFieldName)
load(\Magento\Framework\Model\AbstractModel $object, $value, $field=null)