-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Automatic Entity cast for Parser #2317
Comments
Please raise future feature requests in the forum, thanks :) |
Will do, sorry for the quiproquo, I honestly thought this was a bug! |
@SteeveDroz Sorry if I am misunderstanding... but why don't you just use the Entity method
|
@MGatner Because this method is undocumented and I just learn from it with your very revelant question. The feature request issue seems to be turning into a documentation missing issue. Thanks for the hint/answer! |
Describe the bug
Passing an
Entity
to theParser
displays anErrorExceptions: Object of class (…) could not be converted to string
CodeIgniter 4 version
v4.0.0-rc.2.1
Affected module(s)
Entity
orParser
, couldn't tellExpected behavior, and steps to reproduce if appropriate
Currently, in order to be able to pass an entity to the parser, one must do the following:
It would be so convenient if the
Entity
class didn't need such a cast and if, when passed to aParser
, it was automatically cast into usable data.Currently, the code below returns an
ErrorException
because you can't convert anEntity
into astring
. That simple way of doing would be very useful, though:Context
The text was updated successfully, but these errors were encountered: