Skip to content

Instantly share code, notes, and snippets.

@brunoais
Forked from nickvergessen/gist:752b6b54eedc76c793f3
Last active August 29, 2015 14:01
Show Gist options
  • Save brunoais/e02f5724c41c94962eff to your computer and use it in GitHub Desktop.
Save brunoais/e02f5724c41c94962eff to your computer and use it in GitHub Desktop.
Alternative for phpBB dbal for more explicit table joins
<?
array(
/** ... **/
'FROM' => array(
ONE_TABLE => '1',
TWO_TABLES => array('2', '3'),
ONE_ON_TABLE => array('4' => array('2' =>'4.case = 2.case'),
TWO_ON_TABLES => array(
'5' => array('2' => '5.case = 2.case'),
'6' => array('3' => '6.case = 3.case'),
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment