|  |  | @ -308,13 +308,12 @@ class ActiveQuery extends Query | 
			
		
	
		
		
			
				
					
					|  |  |  | 				$childName = null; |  |  |  | 				$childName = null; | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			$t = strtolower($name); |  |  |  | 			if (!isset($relations[$name])) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			if (!isset($relations[$t])) { |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				$relation = $model->getRelation($name); |  |  |  | 				$relation = $model->getRelation($name); | 
			
		
	
		
		
			
				
					
					|  |  |  | 				$relation->primaryModel = null; |  |  |  | 				$relation->primaryModel = null; | 
			
		
	
		
		
			
				
					
					|  |  |  | 				$relations[$t] = $relation; |  |  |  | 				$relations[$name] = $relation; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} else { |  |  |  | 			} else { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				$relation = $relations[$t]; |  |  |  | 				$relation = $relations[$name]; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if (isset($childName)) { |  |  |  | 			if (isset($childName)) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |