From edbe5cd3ac4416c9ef9f53dd8402e70a20c4168f Mon Sep 17 00:00:00 2001 From: roger Date: Wed, 20 Sep 2006 15:51:33 +0000 Subject: [PATCH] fixed syntax errors --- ... Setting table definition - Introduction.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/manual/codes/Getting started - Setting table definition - Introduction.php b/manual/codes/Getting started - Setting table definition - Introduction.php index 42b68bf66..9e8f63bf1 100644 --- a/manual/codes/Getting started - Setting table definition - Introduction.php +++ b/manual/codes/Getting started - Setting table definition - Introduction.php @@ -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") ); } }