1
0
Fork 0
SVEN/webseite/sys/sources/envms-fluentpdo/tests/12-join-short-multi.phpt

16 lines
375 B
PHP

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