Skip to content

Commit

Permalink
Merge pull request #40 from jyyan/table_annotation_issue
Browse files Browse the repository at this point in the history
small patch for fix [ORM] model Table annotation #39
  • Loading branch information
jcheron committed May 7, 2019
2 parents 284fccf + e239edf commit a46c543
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unrelease]

### Fixed
- ORM :fix https://github.com/phpMv/ubiquity/issues/39
### Fixed
- Logging :fix https://github.com/phpMv/ubiquity/issues/31
### Documentation
Expand Down
2 changes: 2 additions & 0 deletions src/Ubiquity/annotations/TableAnnotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public function initAnnotation(array $properties) {
if (isset ( $properties [0] )) {
$this->name = $properties [0];
unset ( $properties [0] );
} else if (isset ( $properties ['name'] )) {
$this->name = $properties ['name'];
} else {
throw new \Exception ( 'Table annotation must have a name' );
}
Expand Down

0 comments on commit a46c543

Please sign in to comment.