Skip to content

Commit

Permalink
Renaming scope to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 30, 2014
1 parent 4122b8f commit f6fd04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ORM/Table.php
Expand Up @@ -1856,7 +1856,7 @@ public function domainRules() {
if ($this->_domainChecker !== null) {
return $this->_domainChecker;
}
return $this->_domainChecker = $this->buildDomainRules(new DomainChecker(['scope' => $this]));
return $this->_domainChecker = $this->buildDomainRules(new DomainChecker(['repository' => $this]));
}

public function buildDomainRules(DomainChecker $rules) {
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/DomainRulesIntegrationTest.php
Expand Up @@ -61,7 +61,7 @@ public function testsSaveBelongsToWithValidationError() {
->target()
->domainRules()
->add(function (Entity $author, array $options) use ($table) {
$this->assertSame($options['scope'], $table->association('authors')->target());
$this->assertSame($options['repository'], $table->association('authors')->target());
$author->errors('name', ['This is an error']);
return false;
});
Expand Down

0 comments on commit f6fd04d

Please sign in to comment.