From 92325291172ab72c92f2943fd09b0084a55f4420 Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 23 Jul 2007 23:41:16 +0000 Subject: [PATCH] --- .../constraints-and-validators.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manual/new/docs/en/object-relational-mapping/constraints-and-validators.txt b/manual/new/docs/en/object-relational-mapping/constraints-and-validators.txt index 643c20683..366575558 100644 --- a/manual/new/docs/en/object-relational-mapping/constraints-and-validators.txt +++ b/manual/new/docs/en/object-relational-mapping/constraints-and-validators.txt @@ -85,7 +85,7 @@ class Product extends Doctrine_Record public function setTableDefinition() { $this->hasColumn('id', 'integer', 4, 'primary'); - $this->hasColumn('price', 'decimal', 18, array('min' => 0); + $this->hasColumn('price', 'decimal', 18, array('min' => 0)); } } @@ -110,7 +110,7 @@ class Product extends Doctrine_Record public function setTableDefinition() { $this->hasColumn('id', 'integer', 4, 'primary'); - $this->hasColumn('price', 'decimal', 18, array('min' => 0, 'max' => 1000000); + $this->hasColumn('price', 'decimal', 18, array('min' => 0, 'max' => 1000000)); } } @@ -134,8 +134,8 @@ class Product extends Doctrine_Record public function setTableDefinition() { $this->hasColumn('id', 'integer', 4, 'primary'); - $this->hasColumn('price', 'decimal', 18, array('min' => 0, 'max' => 1000000); - $this->hasColumn('discounted_price', 'decimal', 18, array('min' => 0, 'max' => 1000000); + $this->hasColumn('price', 'decimal', 18, array('min' => 0, 'max' => 1000000)); + $this->hasColumn('discounted_price', 'decimal', 18, array('min' => 0, 'max' => 1000000)); $this->check('price > discounted_price'); }