Class ModelCollection
Model collection.
- ICanBoogie\ActiveRecord\ModelCollection implements ArrayAccess uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public
__construct( ICanBoogie\ActiveRecord\ConnectionCollection $connections, array $definitions = [] )
Initializes the ICanBoogie\ActiveRecord\ModelCollection::$connections and ICanBoogie\ActiveRecord\ModelCollection::$definitions properties.
public
offsetGet( string $id )
: ICanBoogie\ActiveRecord\Model
Returns a ICanBoogie\ActiveRecord\Model instance.
protected
instantiate_model( array $attributes )
: ICanBoogie\ActiveRecord\Model
Instantiate a model with the specified attributes.