src/Doctrine/ODM/MongoDB/Entities/BaseEntity.php 1 location
|
@@ 168-174 (lines=7) @@
|
| 165 |
|
foreach ($data as $key => $value) { |
| 166 |
|
$set = true; |
| 167 |
|
|
| 168 |
|
if ( |
| 169 |
|
((!isset($data['id']) || !is_numeric($data['id'])) && !in_array($key, $this->getOnlyStore())) |
| 170 |
|
|| |
| 171 |
|
(isset($data['id']) && is_numeric($data['id']) && !in_array($key, $this->getOnlyUpdate())) |
| 172 |
|
) { |
| 173 |
|
$set = false; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
$method = 'set'.ucfirst($key); |
| 177 |
|
|
src/Doctrine/ORM/Entities/BaseEntity.php 1 location
|
@@ 173-179 (lines=7) @@
|
| 170 |
|
foreach ($data as $key => $value) { |
| 171 |
|
$set = true; |
| 172 |
|
|
| 173 |
|
if ( |
| 174 |
|
((!isset($data['id']) || !is_numeric($data['id'])) && !in_array($key, $this->getOnlyStore())) |
| 175 |
|
|| |
| 176 |
|
(isset($data['id']) && is_numeric($data['id']) && !in_array($key, $this->getOnlyUpdate())) |
| 177 |
|
) { |
| 178 |
|
$set = false; |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
$method = 'set'.ucfirst($key); |
| 182 |
|
|