Skip to content

Commit

Permalink
Change the use of setEntityClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Walder committed Feb 5, 2016
1 parent 5edf1d5 commit 092bbb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/BookStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class BookStore extends GDS\Store
*/
protected function buildSchema()
{
$this->setEntityClass('\\Book');
return (new GDS\Schema('Book'))
->addString('title')
->addString('author')
->addString('isbn', TRUE);
->addString('isbn', TRUE)
->setEntityClass('\\Book');
}

}

0 comments on commit 092bbb2

Please sign in to comment.