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
80dad424
Commit
80dad424
authored
Aug 22, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doctrine_Collection docs updated
parent
69fff9cd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
0 deletions
+19
-0
Basic Components - Collection - Adding new elements.php
...s/Basic Components - Collection - Adding new elements.php
+6
-0
Basic Components - Collection - Collection expanding.php
.../Basic Components - Collection - Collection expanding.php
+0
-0
Basic Components - Collection - Deleting collection.php
...s/Basic Components - Collection - Deleting collection.php
+4
-0
Basic Components - Collection - Getting collection count.php
...ic Components - Collection - Getting collection count.php
+1
-0
Basic Components - Collection - Introduction.php
manual/docs/Basic Components - Collection - Introduction.php
+7
-0
Basic Components - Collection - Saving the collection.php
...Basic Components - Collection - Saving the collection.php
+1
-0
No files found.
manual/docs/Basic Components - Collection - Adding new elements.php
0 → 100644
View file @
80dad424
When
accessing
single
elements
of
the
collection
and
those
elements
(
records
)
don
'
t
exist
Doctrine
auto
-
adds
them
.
<
br
\
><
br
\
>
In
the
following
example
we
fetch
all
users
from
database
(
there
are
5
)
and
then
add
couple
of
users
in
the
collection
.
<
br
\
><
br
\
>
As
with
PHP
arrays
the
indexes
start
from
zero
.
manual/docs/Basic Components - Collection - Collection expanding.php
0 → 100644
View file @
80dad424
manual/docs/Basic Components - Collection - Deleting collection.php
View file @
80dad424
...
...
@@ -7,3 +7,7 @@ of users doctrine only performs two queries for this whole transaction. The quer
<
br
\
><
br
\
>
DELETE
FROM
user
WHERE
id
IN
(
1
,
2
,
3
,
...
,
N
)
<
br
\
>
DELETE
FROM
phonenumber
WHERE
id
IN
(
1
,
2
,
3
,
...
,
M
)
<
br
\
>
<
br
\
><
br
\
>
It
should
also
be
noted
that
Doctrine
is
smart
enough
to
perform
single
-
shot
-
delete
per
table
when
transactions
are
used
.
So
if
you
are
deleting
a
lot
of
records
and
want
to
optimize
the
operation
just
wrap
the
delete
calls
in
Doctrine_Connection
transaction
.
manual/docs/Basic Components - Collection - Getting collection count.php
0 → 100644
View file @
80dad424
The
Doctrine_Collection
method
count
returns
the
number
of
elements
currently
in
the
collection
.
manual/docs/Basic Components - Collection - Introduction.php
0 → 100644
View file @
80dad424
Doctrine_Collection
is
a
collection
of
records
(
see
Doctrine_Record
)
.
As
with
records
the
collections
can
be
deleted
and
saved
using
Doctrine_Collection
::
delete
()
and
Doctrine_Collection
::
save
()
accordingly
.
<
br
\
><
br
\
>
When
fetching
data
from
database
with
either
DQL
API
(
see
Doctrine_Query
)
or
rawSql
API
(
see
Doctrine_RawSql
)
the
methods
return
an
instance
of
Doctrine_Collection
by
default
.
<
br
\
><
br
\
>
The
following
example
shows
how
to
initialize
a
new
collection
:
manual/docs/Basic Components - Collection - Saving the collection.php
0 → 100644
View file @
80dad424
As
with
records
the
collection
can
be
saved
by
calling
the
save
method
.
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