1
0
Fork 0
SVEN/webseite/sys/sources/envms-fluentpdo/tests/14-join-short-two-same-tabl...

16 lines
329 B
PHP

--TEST--
join two same tables
--FILE--
<?php
include_once dirname(__FILE__) . "/connect.inc.php";
/* @var Envms\FluentPDO\Query */
$query = $fluent->from('article')->leftJoin('user')->leftJoin('user');
echo $query->getQuery() . "\n";
?>
--EXPECTF--
SELECT article.*
FROM article
LEFT JOIN user ON user.id = article.user_id