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

endpoint beforeSave callback #7

Closed
Nic0tiN opened this issue Nov 18, 2016 · 2 comments
Closed

endpoint beforeSave callback #7

Nic0tiN opened this issue Nov 18, 2016 · 2 comments

Comments

@Nic0tiN
Copy link

Nic0tiN commented Nov 18, 2016

There is an error in "webservice\src\Model\Endpoint.php" at line 841.

The line is
$event = $this->dispatchEvent('Model.beforeSave', compact('entity', 'options'));

and shold be
$event = $this->dispatchEvent('Model.beforeSave', compact('resource', 'options'));

@ADmad
Copy link
Member

ADmad commented Nov 18, 2016

This plugin doesn't even have a src\Model\Endpoint.php did you mean to post this on Webservices repo?

@Nic0tiN
Copy link
Author

Nic0tiN commented Nov 18, 2016

Yes, it was meant to Webservices. I'll post on the correct repo.

@ADmad ADmad closed this as completed Nov 18, 2016
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