remove add method for BuyerProfileRepository (entities have all necessary methods anyway)
This commit is contained in:
parent
9eff510da4
commit
247aa9c6cc
1 changed files with 0 additions and 19 deletions
|
@ -56,25 +56,6 @@ class BuyerProfileRepository extends AbstractRepository
|
|||
return !empty($found);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Intaro\RetailCrm\Model\Bitrix\BuyerProfile $buyerProfile
|
||||
*
|
||||
* @return \Intaro\RetailCrm\Model\Bitrix\BuyerProfile|null
|
||||
*/
|
||||
public static function add(BuyerProfile $buyerProfile): ?BuyerProfile
|
||||
{
|
||||
$profileData = Serializer::serializeArray($buyerProfile);
|
||||
$buyerProfileInstance = new \CSaleOrderUserProps();
|
||||
|
||||
if ($buyerProfileInstance->Add($profileData)) {
|
||||
$profileData = OrderUserProperties::getList([
|
||||
"filter" => $buyerProfile
|
||||
])->fetch();
|
||||
}
|
||||
|
||||
return static::deserialize($profileData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns array with buyer profile if one was found. Returns empty array otherwise.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue