mirror of
https://github.com/dg/dibi.git
synced 2025-08-09 23:56:58 +02:00
DibiResult: rewritten associate descriptor syntax
This commit is contained in:
@@ -81,14 +81,14 @@ INNER JOIN [orders] USING ([product_id])
|
||||
INNER JOIN [customers] USING ([customer_id])
|
||||
');
|
||||
|
||||
$assoc = $res->fetchAssoc('customers.name,products.title'); // key
|
||||
$assoc = $res->fetchAssoc('customers.name|products.title'); // key
|
||||
Debug::dump($assoc);
|
||||
echo '<hr>';
|
||||
|
||||
$assoc = $res->fetchAssoc('customers.name,#,products.title'); // key
|
||||
$assoc = $res->fetchAssoc('customers.name[]products.title'); // key
|
||||
Debug::dump($assoc);
|
||||
echo '<hr>';
|
||||
|
||||
$assoc = $res->fetchAssoc('customers.name,=,products.title'); // key
|
||||
$assoc = $res->fetchAssoc('customers.name->products.title'); // key
|
||||
Debug::dump($assoc);
|
||||
echo '<hr>';
|
||||
|
Reference in New Issue
Block a user