Doctrine\DBAL\Query\QueryBuilder::from
Create and add a query root corresponding to the table identified by the given alias, forming a cartesian product with any existing query roots.
<code> $qb = $conn->createQueryBuilder() ->select('u.id') ->from('users', 'u') </code>
Signature
public function from(string
$from,
string
$alias )
Parameters
$from
— string- The table
$alias
— string- The alias of the table
Returns
- QueryBuilder
- This QueryBuilder instance.