src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/LoadRFMCategoryData.php 1 location
|
@@ 120-129 (lines=10) @@
|
117 |
|
* @param array $data |
118 |
|
* @param array $excludeProperties |
119 |
|
*/ |
120 |
|
public function setEntityPropertyValues($entity, array $data, array $excludeProperties = []) |
121 |
|
{ |
122 |
|
$propertyAccessor = PropertyAccess::createPropertyAccessor(); |
123 |
|
foreach ($data as $property => $value) { |
124 |
|
if (in_array($property, $excludeProperties)) { |
125 |
|
continue; |
126 |
|
} |
127 |
|
$propertyAccessor->setValue($entity, $property, $value); |
128 |
|
} |
129 |
|
} |
130 |
|
|
131 |
|
/** |
132 |
|
* {@inheritdoc} |
src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/LoadRFMOrderData.php 1 location
|
@@ 121-130 (lines=10) @@
|
118 |
|
* @param array $data |
119 |
|
* @param array $excludeProperties |
120 |
|
*/ |
121 |
|
public function setEntityPropertyValues($entity, array $data, array $excludeProperties = []) |
122 |
|
{ |
123 |
|
$propertyAccessor = PropertyAccess::createPropertyAccessor(); |
124 |
|
foreach ($data as $property => $value) { |
125 |
|
if (in_array($property, $excludeProperties)) { |
126 |
|
continue; |
127 |
|
} |
128 |
|
$propertyAccessor->setValue($entity, $property, $value); |
129 |
|
} |
130 |
|
} |
131 |
|
|
132 |
|
/** |
133 |
|
* {@inheritdoc} |
src/OroCRM/Bundle/AnalyticsBundle/Tests/Functional/DataFixtures/LoadOrderData.php 1 location
|
@@ 130-139 (lines=10) @@
|
127 |
|
* @param array $data |
128 |
|
* @param array $excludeProperties |
129 |
|
*/ |
130 |
|
public function setEntityPropertyValues($entity, array $data, array $excludeProperties = []) |
131 |
|
{ |
132 |
|
$propertyAccessor = PropertyAccess::createPropertyAccessor(); |
133 |
|
foreach ($data as $property => $value) { |
134 |
|
if (in_array($property, $excludeProperties)) { |
135 |
|
continue; |
136 |
|
} |
137 |
|
$propertyAccessor->setValue($entity, $property, $value); |
138 |
|
} |
139 |
|
} |
140 |
|
|
141 |
|
/** |
142 |
|
* {@inheritdoc} |