Skip to content

Commit

Permalink
fixed test-suite (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
romaninsh authored and DarkSide666 committed Sep 11, 2017
1 parent bd65c96 commit 9b99b94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Reference.php
Expand Up @@ -163,7 +163,7 @@ public function getModel($defaults = [])

$p = $this->owner->persistence;

return $p->add($p->normalizeClassName($model, 'Model'), $defaults);
return $p->add($model, $defaults);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/RandomTest.php
Expand Up @@ -25,7 +25,7 @@ public function init()
{
parent::init();
$this->addField('name');
$this->hasOne('parent_item_id', '\atk4\data\tests\Item')
$this->hasOne('parent_item_id', '\atk4\data\tests\Model_Item')
->addTitle();
}
}
Expand Down Expand Up @@ -295,7 +295,7 @@ public function testIssue163()
$db = new Persistence_SQL($this->db->connection);
$m = new Model_Item($db);

$m->hasOne('Person', 'atk4/data/tests/Person');
$m->hasOne('Person', 'atk4/data/tests/Model_Person');
$person = $m->ref('Person');
}
}

0 comments on commit 9b99b94

Please sign in to comment.