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
4aab1572
Commit
4aab1572
authored
Mar 05, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs menu updated
parent
cb79beca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Object relational mapping - Constraints and validators - Unique.php
...ational mapping - Constraints and validators - Unique.php
+3
-1
menu.php
manual/menu.php
+1
-0
No files found.
manual/docs/Object relational mapping - Constraints and validators - Unique.php
View file @
4aab1572
Unique
constraints
ensure
that
the
data
contained
in
a
column
or
a
group
of
columns
is
unique
with
respect
to
all
the
rows
in
the
table
.
In
general
,
a
unique
constraint
is
violated
when
there
are
two
or
more
rows
in
the
table
where
the
values
of
all
of
the
columns
included
in
the
constraint
are
equal
.
However
,
two
null
values
are
not
considered
equal
in
this
comparison
.
That
means
even
in
the
presence
of
a
unique
constraint
it
is
possible
to
store
duplicate
rows
that
contain
a
null
value
in
at
least
one
of
the
constrained
columns
.
This
behavior
conforms
to
the
SQL
standard
,
but
some
databases
do
not
follow
this
rule
.
So
be
careful
when
developing
applications
that
are
intended
to
be
portable
.
The
following
definition
uses
a
unique
constraint
for
column
'name'
.
<
code
type
=
'php'
>
...
...
@@ -27,4 +29,4 @@ class User extends Doctrine_Record
$this
->
unique
(
array
(
'name'
,
'age'
));
}
}
</
code
>
</
code
>
manual/menu.php
View file @
4aab1572
...
...
@@ -43,6 +43,7 @@ Object relational mapping
Constraints
and
validators
Introduction
Notnull
Unique
Check
Record
identifiers
Introduction
...
...
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