The library now is able to â€¦

I’m cur­r­ent­ly wri­ting a libra­ry of PHP stuff for our inter­nal use. I’ve been able to make it do a few fun tricks. 

To express a que­ry with a sub­que­ry, I can now do this:
$sube = new Expression('subtable');
$sube->addTerm('field2',' =','expr:now()'); $sube->endGroup;
$e = new Expression('table');
$e->addTerm('field2','not in',$sube);


I like that!

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.