|  | @@ 514-522 (lines=9) @@ | 
                                                            
                                    | 511 |  | 				if( ! $generator_object ){ | 
                                                            
                                    | 512 |  | 					continue; | 
                                                            
                                    | 513 |  | 				} | 
                                                            
                                    | 514 |  | 				if( ! $generator_object instanceof EE_Restriction_Generator_Base ){ | 
                                                            
                                    | 515 |  | 					throw new EE_Error( | 
                                                            
                                    | 516 |  | 						sprintf( | 
                                                            
                                    | 517 |  | 							__( 'Index "%1$s" in the model %2$s\'s _cap_restriction_generators is not a child of EE_Restriction_Generator_Base. It should be that or NULL.', 'event_espresso' ), | 
                                                            
                                    | 518 |  | 							$context, | 
                                                            
                                    | 519 |  | 							$this->get_this_model_name() | 
                                                            
                                    | 520 |  | 						) | 
                                                            
                                    | 521 |  | 					); | 
                                                            
                                    | 522 |  | 				} | 
                                                            
                                    | 523 |  | 				$action = $this->cap_action_for_context( $context ); | 
                                                            
                                    | 524 |  | 				if( ! $generator_object->construction_finalized() ){ | 
                                                            
                                    | 525 |  | 					$generator_object->_construct_finalize( $this, $action ); | 
                                                                                
                                |  | @@ 2191-2193 (lines=3) @@ | 
                                                            
                                    | 2188 |  | 				$field_with_model_name = $field; | 
                                                            
                                    | 2189 |  | 			} | 
                                                            
                                    | 2190 |  | 		} | 
                                                            
                                    | 2191 |  | 		if( !isset($field_with_model_name) || !$field_with_model_name ){ | 
                                                            
                                    | 2192 |  | 			throw new EE_Error(sprintf(__("There is no EE_Any_Foreign_Model_Name field on model %s", "event_espresso"), $this->get_this_model_name() )); | 
                                                            
                                    | 2193 |  | 		} | 
                                                            
                                    | 2194 |  | 		return $field_with_model_name; | 
                                                            
                                    | 2195 |  | 	} | 
                                                            
                                    | 2196 |  |  | 
                                                                                
                                |  | @@ 3758-3760 (lines=3) @@ | 
                                                            
                                    | 3755 |  | 				} | 
                                                            
                                    | 3756 |  | 			} | 
                                                            
                                    | 3757 |  | 			$classInstance=$this->instantiate_class_from_array_or_object($row); | 
                                                            
                                    | 3758 |  | 			if( ! $classInstance ) { | 
                                                            
                                    | 3759 |  | 				throw new EE_Error( | 
                                                            
                                    | 3760 |  | 					sprintf( | 
                                                            
                                    | 3761 |  | 						__( 'Could not create instance of class %s from row %s', 'event_espresso' ), | 
                                                            
                                    | 3762 |  | 						$this->get_this_model_name(), | 
                                                            
                                    | 3763 |  | 						http_build_query( $row ) |