Class Relation
Representation of a relation.
- ICanBoogie\ActiveRecord\Relation uses ICanBoogie\Accessor\AccessorTrait (not available)
 
Direct known subclasses
			ICanBoogie\ActiveRecord\BelongsToRelation, 
			ICanBoogie\ActiveRecord\HasManyRelation
		
Methods summary
				
				 public 
				
				
				__construct( ICanBoogie\ActiveRecord\Model $parent, ICanBoogie\ActiveRecord\Model|string $related, array $options = [] )
				
				
			
			
			
		
				
				abstract public 
				
				
				__invoke( ICanBoogie\ActiveRecord $record )
				
				: ICanBoogie\ActiveRecord\Query
			
			Create a query with the relation.
				
				 protected 
				
				
				alter_prototype( ICanBoogie\Prototype $prototype, string $property )
				
				
			
			Add a getter for the relation to the prototype.
				
				 protected 
				
				
				resolve_activerecord_class( ICanBoogie\ActiveRecord\Model $model )
				
				: string
			
			Resolve the active record class name from the specified model.
				
				 protected 
				
				
				resolve_property_name( ICanBoogie\ActiveRecord\Model|string $related )
				
				: string
			
			Resolve the property name from the related model.