Permalink
Browse files

Use parent primary key type

Signed-off-by: Martin Richard <martius@martiusweb.net>
  • Loading branch information...
Martiusweb committed Sep 5, 2012
1 parent ed33134 commit 1e2236c23a0aa4e53ccce39a540cd10569ffb61f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/EqualNestBehavior.php
@@ -42,7 +42,7 @@ public function modifyTable()
$this->getTable()->addColumn(array(
'name' => $this->getReferenceColumn1Name(),
'primaryKey' => 'true',
- 'type' => 'INTEGER'
+ 'type' => $parentTablePrimaryKey[0]->getType(),
));
$fk = new ForeignKey();
@@ -58,7 +58,7 @@ public function modifyTable()
$this->getTable()->addColumn(array(
'name' => $this->getReferenceColumn2Name(),
'primaryKey' => 'true',
- 'type' => 'INTEGER',
+ 'type' => $parentTablePrimaryKey[0]->getType(),
));
$fk = new ForeignKey();

0 comments on commit 1e2236c

Please sign in to comment.