← Back to team overview

anewt-developers team mailing list archive

[Bug 361805] Re: Incorrect NULL values on left joins in AutoRecord

 

Maybe we need something like an AnewtQueryBuilder. That query builder
then takes care of creating (complex) sql queries. AnewtAutoRecord only
provides information about tables and some simple factory methods for
AnewtQueryBuilder (like find_all, find_one_by_id, etc.). Joins might be
provided by simple joins classes or something.

Then you could do something like:
$builder = A::create_builder();
$builder->add_join('A', 'B');
$buider->add_join('B', 'C');
$builder->add_where('online > now()');
$builder->limit(5);
$result = $builder->execute();

-- 
Incorrect NULL values on left joins in AutoRecord
https://bugs.launchpad.net/bugs/361805
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.



References