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

ReflectionProperty::getValue() expects exactly 1 parameter, 0 given #26

Open
raulsilvamx opened this issue Jun 26, 2014 · 8 comments
Open

Comments

@raulsilvamx
Copy link

I write this issue because i don't know why i got this Warning: ReflectionProperty::getValue() expects exactly 1 parameter, 0 given Is i doing something wrong?... Help me!

@estheban
Copy link

estheban commented Nov 3, 2014

Having the same issue.
PHP 5.6.2

@josecelano
Copy link

I think I had the same problem but I do not remember waht was the problem. Has the property null value?

Anyway the bundle has another bugs. See this isuue:
#31

@daysleeperrr
Copy link

Experiencing the same issue. Anyone has a solution?

@daysleeperrr
Copy link

This problem seems to only apply to public entity properties. Switching to private (and manage access via getter/setter methods) seems to resolve this.

@ShiruJan
Copy link

i have the same error, my entity properties are private =(

@raulsilvamx
Copy link
Author

a year ago I've been using laravel framework... I think is a good option to develop sites too. I hope I'm not being rude.

@daysleeperrr
Copy link

Can't check my repo right now, but I vaguely remember it had to do with underscores. So if you have variable $some_var in your entity, the setter methld is setSomeVar... Solution might be to have alias method for the setter with underscore like setSome_var($val) { return $this->setSomeVar($val); }. Same for getter. Let me know if that works!

@ShiruJan
Copy link

Hello,
I deleted the cache, it works normal, tnks..

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

5 participants