mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	ActiveRecord::getRelation() bugfix
This commit is contained in:
		@ -1131,9 +1131,9 @@ class ActiveRecord extends Model
 | 
				
			|||||||
				return $relation;
 | 
									return $relation;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		} catch (UnknownMethodException $e) {
 | 
							} catch (UnknownMethodException $e) {
 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
			throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
 | 
								throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Establishes the relationship between two models.
 | 
						 * Establishes the relationship between two models.
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user