src/Doctrine/Common/Traits/SetPropertiesEntityTrait.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 23-29 (lines=7) @@ | 
                                                            
                                    | 20 |  |         foreach ($data as $key => $value) { | 
                                                            
                                    | 21 |  |             $set = true; | 
                                                            
                                    | 22 |  |  | 
                                                            
                                    | 23 |  |             if ( | 
                                                            
                                    | 24 |  |                 ((!isset($data['id']) || !is_numeric($data['id'])) && !in_array($key, $this->getOnlyStore())) | 
                                                            
                                    | 25 |  |                 || | 
                                                            
                                    | 26 |  |                 (isset($data['id']) && is_numeric($data['id']) && !in_array($key, $this->getOnlyUpdate())) | 
                                                            
                                    | 27 |  |             ) { | 
                                                            
                                    | 28 |  |                 $set = false; | 
                                                            
                                    | 29 |  |             } | 
                                                            
                                    | 30 |  |  | 
                                                            
                                    | 31 |  |             $methodSet = 'set'.ucfirst($key); | 
                                                            
                                    | 32 |  |             $methodGet = 'get'.ucfirst($key); | 
                                                                        
                 
                                                            
                    
src/Doctrine/ODM/MongoDB/Entities/BaseEntity.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 200-206 (lines=7) @@ | 
                                                            
                                    | 197 |  |         foreach ($data as $key => $value) { | 
                                                            
                                    | 198 |  |             $set = true; | 
                                                            
                                    | 199 |  |  | 
                                                            
                                    | 200 |  |             if ( | 
                                                            
                                    | 201 |  |                 ((!isset($data['id']) || !is_numeric($data['id'])) && !in_array($key, $this->getOnlyStore())) | 
                                                            
                                    | 202 |  |                 || | 
                                                            
                                    | 203 |  |                 (isset($data['id']) && is_numeric($data['id']) && !in_array($key, $this->getOnlyUpdate())) | 
                                                            
                                    | 204 |  |             ) { | 
                                                            
                                    | 205 |  |                 $set = false; | 
                                                            
                                    | 206 |  |             } | 
                                                            
                                    | 207 |  |  | 
                                                            
                                    | 208 |  |             $method = 'set'.ucfirst($key); | 
                                                            
                                    | 209 |  |  |