src/services/Model.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 328-339 (lines=12) @@ | 
                                                            
                                    | 325 |  |      * @param string $toScenario | 
                                                            
                                    | 326 |  |      * @return BaseModel[] | 
                                                            
                                    | 327 |  |      */ | 
                                                            
                                    | 328 |  |     public function findAllByQuery(QueryInterface $query, string $toScenario = null): array | 
                                                            
                                    | 329 |  |     { | 
                                                            
                                    | 330 |  |  | 
                                                            
                                    | 331 |  |         $models = array(); | 
                                                            
                                    | 332 |  |  | 
                                                            
                                    | 333 |  |         foreach ($query->all() as $record) { | 
                                                            
                                    | 334 |  |             $models[] = $this->findByRecord($record, $toScenario); | 
                                                            
                                    | 335 |  |         } | 
                                                            
                                    | 336 |  |  | 
                                                            
                                    | 337 |  |         return $models; | 
                                                            
                                    | 338 |  |  | 
                                                            
                                    | 339 |  |     } | 
                                                            
                                    | 340 |  |  | 
                                                            
                                    | 341 |  |     /** | 
                                                            
                                    | 342 |  |      * @param QueryInterface $query | 
                                                                        
                 
                                                            
                    
src/services/Object.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 325-336 (lines=12) @@ | 
                                                            
                                    | 322 |  |      * @param string $toScenario | 
                                                            
                                    | 323 |  |      * @return BaseObject[] | 
                                                            
                                    | 324 |  |      */ | 
                                                            
                                    | 325 |  |     public function findAllByQuery(QueryInterface $query, string $toScenario = null): array | 
                                                            
                                    | 326 |  |     { | 
                                                            
                                    | 327 |  |  | 
                                                            
                                    | 328 |  |         $objects = array(); | 
                                                            
                                    | 329 |  |  | 
                                                            
                                    | 330 |  |         foreach ($query->all() as $record) { | 
                                                            
                                    | 331 |  |             $objects[] = $this->findByRecord($record, $toScenario); | 
                                                            
                                    | 332 |  |         } | 
                                                            
                                    | 333 |  |  | 
                                                            
                                    | 334 |  |         return $objects; | 
                                                            
                                    | 335 |  |  | 
                                                            
                                    | 336 |  |     } | 
                                                            
                                    | 337 |  |  | 
                                                            
                                    | 338 |  |     /** | 
                                                            
                                    | 339 |  |      * @param QueryInterface $query |