-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Strange behavior while adding __clone function in User class #2609
Comments
I've also just encountered this. Very strange. If anyone has an answer as to why this is, it'd be good to know! I only needed to nullify a couple of properties in my entity on clone so I've been able to do this in the controller after cloning the entity object but admittedly it would be nicer to have these in
|
In fact, I've just found this; This seems to suggest that using __clone() in entities is really a no no unless you safely implement the method. However, even using the example there and only running when the check for an ID passes seems to log me back out... |
Is it possible to use the __clone function inside de User class? Each time I implement this class I get really strange beahavior... The app always return to the login check route!
The text was updated successfully, but these errors were encountered: