src/Doctrine/ODM/MongoDB/Entities/BaseEntity.php 1 location
|
@@ 156-162 (lines=7) @@
|
153 |
|
foreach ($data as $key => $value) { |
154 |
|
$set = true; |
155 |
|
|
156 |
|
if ( |
157 |
|
((!isset($data['id']) || !is_numeric($data['id'])) && !in_array($key, $this->getOnlyStore())) |
158 |
|
|| |
159 |
|
(isset($data['id']) && is_numeric($data['id']) && !in_array($key, $this->getOnlyUpdate())) |
160 |
|
) { |
161 |
|
$set = false; |
162 |
|
} |
163 |
|
|
164 |
|
$method = 'set'.ucfirst($key); |
165 |
|
|
src/Doctrine/ORM/Entities/BaseEntity.php 1 location
|
@@ 163-169 (lines=7) @@
|
160 |
|
foreach ($data as $key => $value) { |
161 |
|
$set = true; |
162 |
|
|
163 |
|
if ( |
164 |
|
((!isset($data['id']) || !is_numeric($data['id'])) && !in_array($key, $this->getOnlyStore())) |
165 |
|
|| |
166 |
|
(isset($data['id']) && is_numeric($data['id']) && !in_array($key, $this->getOnlyUpdate())) |
167 |
|
) { |
168 |
|
$set = false; |
169 |
|
} |
170 |
|
|
171 |
|
$method = 'set'.ucfirst($key); |
172 |
|
|