Hydrahon v1.1.8
Changes
Feature: query flags
Query flags allow you to store parameters inside a query object. This can be very useful when passing a query object through multiple modifiers.
$movies = $h->table('movies');
$movies->join('review', 'review.movie_id', '=', 'review.id');
$movies->setFlag('reviewIsJoined', true);
// somewhere later ...
if ($movies->getFlag('reviewIsJoined', false)) {
$movies->orderBy('review.rating');
}