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
                
                
                    
                                                
                                                    
                                |  | @@ 212-218 (lines=7) @@ | 
                                                            
                                    | 209 |  |         foreach ($data as $key => $value) { | 
                                                            
                                    | 210 |  |             $set = true; | 
                                                            
                                    | 211 |  |  | 
                                                            
                                    | 212 |  |             if ( | 
                                                            
                                    | 213 |  |                 ((!isset($data['id']) || !is_numeric($data['id'])) && !in_array($key, $this->getOnlyStore())) | 
                                                            
                                    | 214 |  |                 || | 
                                                            
                                    | 215 |  |                 (isset($data['id']) && is_numeric($data['id']) && !in_array($key, $this->getOnlyUpdate())) | 
                                                            
                                    | 216 |  |             ) { | 
                                                            
                                    | 217 |  |                 $set = false; | 
                                                            
                                    | 218 |  |             } | 
                                                            
                                    | 219 |  |  | 
                                                            
                                    | 220 |  |             $method = 'set'.ucfirst($key); | 
                                                            
                                    | 221 |  |  |