From b0714aff5953261ebac3ce17ea87a36c5d5576ad Mon Sep 17 00:00:00 2001 From: Isofarro Date: Sat, 10 Apr 2010 19:55:37 +0100 Subject: [PATCH] Refactor schema definition slightly --- IsotopeOrmModelSchema.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/IsotopeOrmModelSchema.php b/IsotopeOrmModelSchema.php index b8b5482..c69b67f 100644 --- a/IsotopeOrmModelSchema.php +++ b/IsotopeOrmModelSchema.php @@ -7,11 +7,12 @@ class IsotopeOrmModelSchema { public function __construct($name) { $this->name = $name; $this->schema = (object) array( - 'fields' => array( - IsotopeOrmSchema::ID_FIELDNAME => IsotopeOrmSchema::PRIMARY_KEY, - IsotopeOrmSchema::MODEL_FIELDNAME => $name + 'model' => $name, + 'fields' => array( + IsotopeOrmSchema::ID_FIELDNAME => IsotopeOrmSchema::PRIMARY_KEY ), - 'indexes' => array() + 'indexes' => array(), + 'subtables' => array() ); }