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
186b4465
Commit
186b4465
authored
Aug 30, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs updated
parent
fb77e2f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
Basic Components - Connection - Introduction.php
...al/codes/Basic Components - Connection - Introduction.php
+0
-0
Mapping object relations - Composites and aggregates.php
.../Mapping object relations - Composites and aggregates.php
+7
-6
Mapping object relations - Introduction.php
manual/docs/Mapping object relations - Introduction.php
+2
-1
No files found.
manual/codes/Basic Components - Connection - Introduction.php
0 → 100644
View file @
186b4465
manual/docs/Mapping object relations - Composites and aggregates.php
View file @
186b4465
Doctrine
supports
aggregates
and
composites
.
When
binding
composites
you
can
use
methods
Doctrine_Table
::
ownsOne
()
and
Doctrine_Table
::
ownsMany
()
.
When
binding
aggregates
you
can
use
methods
Doctrine_Table
::
hasOne
()
and
Doctrine_Table
::
hasMany
()
.
Doctrine
supports
aggregates
and
composites
.
When
binding
composites
you
can
use
methods
Doctrine_Record
::
ownsOne
()
and
Doctrine_Record
::
ownsMany
()
.
When
binding
aggregates
you
can
use
methods
Doctrine_Record
::
hasOne
()
and
Doctrine_Record
::
hasMany
()
.
Basically
using
the
owns
*
methods
is
like
adding
a
database
level
ON
CASCADE
DELETE
constraint
on
related
component
with
an
exception
that
doctrine
handles
the
deletion
in
application
level
.
<
br
\
><
br
\
>
In
Doctrine
if
you
bind
an
Email
to
a
User
using
ownsOne
or
ownsMany
methods
,
everytime
User
record
calls
save
or
delete
the
associated
Email
record
is
also
saved
/
deleted
.
In
Doctrine
if
you
bind
an
Email
to
a
User
using
ownsOne
or
ownsMany
methods
,
everytime
User
record
calls
delete
the
associated
Email
record
is
also
deleted
.
<
br
\
><
br
\
>
Then
again
if
you
bind
an
Email
to
a
User
using
hasOne
or
hasMany
methods
,
everytime
User
record
calls
save
or
delete
the
associated
Email
record
is
NOT
saved
/
deleted
.
Then
again
if
you
bind
an
Email
to
a
User
using
hasOne
or
hasMany
methods
,
everytime
User
record
calls
delete
the
associated
Email
record
is
NOT
deleted
.
manual/docs/Mapping object relations - Introduction.php
View file @
186b4465
In
Doctrine
all
record
relations
are
being
set
with
hasMany
,
hasOne
,
ownsMany
and
ownsOne
methods
.
In
Doctrine
all
record
relations
are
being
set
with
hasMany
,
hasOne
,
ownsMany
and
ownsOne
methods
.
Doctrine
supports
almost
any
kind
of
database
relation
from
simple
one
-
to
-
one
foreign
key
relations
to
join
table
self
-
referencing
relations
.
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