Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
1879b8ea
Commit
1879b8ea
authored
May 11, 2007
by
lsmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- typo fixes
parent
797cdece
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Object relational mapping - Relations - Inheritance - Column aggregation.php
...apping - Relations - Inheritance - Column aggregation.php
+2
-2
Working with objects - Component overview - Query - Introduction.php
...h objects - Component overview - Query - Introduction.php
+4
-4
No files found.
manual/docs/Object relational mapping - Relations - Inheritance - Column aggregation.php
View file @
1879b8ea
...
...
@@ -76,10 +76,10 @@ $group->username='users';
$group
->
password
=
'password'
;
$group
->
save
();
$q
=
Doctrine_Query
();
$q
=
new
Doctrine_Query
();
$user
=
$q
->
from
(
'Entity'
)
->
where
(
'id=?'
)
->
execute
(
array
(
$user
->
id
))
->
getFirst
();
$q
=
Doctrine_Query
();
$q
=
new
Doctrine_Query
();
$group
=
$q
->
from
(
'Entity'
)
->
where
(
'id=?'
)
->
execute
(
array
(
$group
->
id
))
->
getFirst
();
</
code
>
...
...
manual/docs/Working with objects - Component overview - Query - Introduction.php
View file @
1879b8ea
DQL
(
Doctrine
Query
Language
)
is
a
object
query
language
which
allows
you
to
find
objects
.
DQL
understands
things
like
object
relationships
,
polymorphism
and
inheritance
(
including
column
aggregation
inheritance
)
.
you
to
find
objects
.
DQL
understands
things
like
object
relationships
,
polymorphism
and
inheritance
(
including
column
aggregation
inheritance
)
.
For
more
info
about
DQL
see
the
actual
DQL
chapter
.
Doctrine_Query
along
with
Doctrine_Expression
provide
an
easy
-
to
-
use
wrapper
for
writing
DQL
queries
.
Creating
a
new
Doctrine_Query
along
with
Doctrine_Expression
provide
an
easy
-
to
-
use
wrapper
for
writing
DQL
queries
.
Creating
a
new
query
object
can
be
done
by
either
using
the
new
operator
or
by
calling
create
method
.
The
create
method
exists
for
allowing
easy
method
call
chaining
.
...
...
@@ -20,5 +20,5 @@ $q = new Doctrine_Query($conn);
// an example using the create method
// here we simple fetch all users
$users
=
Doctrine_Query
::
create
()
->
from
(
'User'
)
->
execute
();
$users
=
new
Doctrine_Query
::
create
()
->
from
(
'User'
)
->
execute
();
</
code
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment