Commit 6245287e authored by zYne's avatar zYne

--no commit message

--no commit message
parent 75a1ead5
...@@ -6,8 +6,17 @@ FROM <component_reference> [[LEFT | INNER] JOIN <component_reference>] ... ...@@ -6,8 +6,17 @@ FROM <component_reference> [[LEFT | INNER] JOIN <component_reference>] ...
The {{FROM}} clause indicates the component or components from which to retrieve records. If you name more than one component, you are performing a join. For each table specified, you can optionally specify an alias. The {{FROM}} clause indicates the component or components from which to retrieve records. If you name more than one component, you are performing a join. For each table specified, you can optionally specify an alias.
* The default join type is {{LEFT JOIN}}. This join can be indicated by the use of either {{LEFT JOIN}} clause or simply '{{,}}', hence the following queries are equal: Consider the following DQL query:
<code>
FROM User u
</code>
Here 'User' is the name of the class (component) and 'u' is the alias. You should always use short aliases, since most of the time those make the query much shorther and also because when using for example caching the cached form of the query takes less space when short aliases are being used.
The following example shows how to fetch all records from class 'User'.
<code type="php">
$users = Doctrine_Query::create()
->from('User u')
->execute();
</code>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment