Skip to content

Commit

Permalink
Refactor schema definition slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
isofarro committed Apr 10, 2010
1 parent 035fac8 commit b0714af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions IsotopeOrmModelSchema.php
Expand Up @@ -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()
);
}

Expand Down

0 comments on commit b0714af

Please sign in to comment.