Skip to content

Commit

Permalink
small patch for fix [ORM] model Table annotation phpMv#39
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyan committed May 7, 2019
1 parent 284fccf commit f4393f2
Showing 1 changed file with 2 additions and 0 deletions.
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 f4393f2

Please sign in to comment.