Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datachore laravel #2

Closed
sidalihallak opened this issue Nov 4, 2014 · 3 comments
Closed

datachore laravel #2

sidalihallak opened this issue Nov 4, 2014 · 3 comments

Comments

@sidalihallak
Copy link

i tried to use datachore with laravel, a used the laste gae sdk, i followed the steps in the read me file, but when i try to add new entity i got the following error:

Argument 1 passed to Datachore\Datachore::setDatastore() must be an instance of Datachore\Datastore, null given, called in /laravelgae/vendor/datachore/datachore/src/Datachore.php on line 69 and defined

@pwhelan
Copy link
Owner

pwhelan commented Nov 7, 2014

Try invoking a new Datastore with the remote api:

$datastore = new Datachore\Datastore\GoogleRemoteApi;

The rest of Datachore will automatically use it.

@sidalihallak
Copy link
Author

thank's it works

@pwhelan
Copy link
Owner

pwhelan commented Nov 12, 2014

I'll add that to the documentation as well as implicitly initializing it if possible. Thanks for spotting this omission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants