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
edbe5cd3
Commit
edbe5cd3
authored
Sep 20, 2006
by
roger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed syntax errors
parent
43980029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Getting started - Setting table definition - Introduction.php
...ing started - Setting table definition - Introduction.php
+9
-8
No files found.
manual/codes/Getting started - Setting table definition - Introduction.php
View file @
edbe5cd3
...
...
@@ -9,24 +9,25 @@ class Email extends Doctrine_Record {
"200"
,
// column length
array
(
"notblank"
=>
true
,
"email"
=>
true
// validators / constraints
);
)
);
$this
->
hasColumn
(
"address2"
,
// name of the column
"string"
,
// column type
"200"
,
// column length
// validators / constraints without arguments can be
// validators / constraints without arguments can be
// specified also as as string with | separator
"notblank|email"
,
"notblank|email"
);
// Doctrine even supports the following format for
// Doctrine even supports the following format for
// validators / constraints which have no arguments:
$this
->
hasColumn
(
"address3"
,
// name of the column
"string"
,
// column type
"200"
,
// column length
array
(
"notblank"
,
"email"
)
,
array
(
"notblank"
,
"email"
)
);
}
}
...
...
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