Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin v / vvval committed Nov 23, 2017
2 parents aebc8d5 + 6066859 commit 5399f5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"require": {
"php": ">=7.0",
"psr/simple-cache": "^1.0",
"spiral/common": "^0.9",
"spiral/models": "^0.9",
"spiral/tokenizer": "^0.9",
"spiral/database": "^0.9",
"spiral/common": "^1.0",
"spiral/models": "^1.0",
"spiral/tokenizer": "^1.0.0",
"spiral/database": "^1.0",
"doctrine/inflector": "^1.1"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions source/Spiral/ORM/Schemas/Definitions/RelationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ public function getPrimary(): ColumnInterface
*
* @return AbstractColumn
*/
public function getColumn($name): AbstractColumn
public function getColumn(string $name): AbstractColumn
{
if (!$this->schema->hasColumn($name)) {
throw new DefinitionException("Undefined column {$name} in {$this->schema->getName()}");
}

return clone $this->schema->column($name);
}
}
}

0 comments on commit 5399f5d

Please sign in to comment.