Trait ModelBindings
ICanBoogie\ActiveRecord\Model prototype bindings.
Methods summary
public
fetch_records( array $conditions
)
: ICanBoogie\Facets\RecordCollection
Fetches the records matching the specified conditions.
Fetches the records matching the specified conditions.
A ICanBoogie\Facets\Fetcher instance is used to fetch the records.
Parameters
Returns
ICanBoogie\Facets\RecordCollection
public
fetch_record( array $conditions
, ICanBoogie\Facets\Fetcher & $fetcher
= null )
: ICanBoogie\ActiveRecord|null
Fetches a record matching the specified conditions.
Fetches a record matching the specified conditions.
The model's ICanBoogie\Binding\Facets\ModelBindings::fetch_records()
prototype method is used to retrieve the record.
Parameters
$conditions
$fetcher
If the parameter fetcher
is present, the ICanBoogie\Facets\Fetcher
instance created to fetch the record is stored inside.
Returns
ICanBoogie\ActiveRecord|null
Properties summary
Magic properties
public read-only
$criteria
: array
public read-only
$criterion_list
: ICanBoogie\Facets\CriterionList