1
0
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:
David Grudl
2009-10-06 18:09:13 +02:00
parent 0337cbdba9
commit 4235b3564f
2 changed files with 79 additions and 15 deletions

View File

@@ -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>';