Commit edbe5cd3 authored by roger's avatar roger

fixed syntax errors

parent 43980029
...@@ -9,24 +9,25 @@ class Email extends Doctrine_Record { ...@@ -9,24 +9,25 @@ class Email extends Doctrine_Record {
"200", // column length "200", // column length
array("notblank" => true, array("notblank" => true,
"email" => true // validators / constraints "email" => true // validators / constraints
); )
);
$this->hasColumn("address2", // name of the column $this->hasColumn("address2", // name of the column
"string", // column type "string", // column type
"200", // column length "200", // column length
// validators / constraints without arguments can be // validators / constraints without arguments can be
// specified also as as string with | separator // 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: // validators / constraints which have no arguments:
$this->hasColumn("address3", // name of the column $this->hasColumn("address3", // name of the column
"string", // column type "string", // column type
"200", // column length "200", // column length
array("notblank", "email"), array("notblank", "email")
); );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment