-
Notifications
You must be signed in to change notification settings - Fork 95
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
Ds\Map do not support mysqli result fetch_object #79
Comments
I believe this is because Ds\Map doesn't use the object's properties table to store the data. I don't see a way to support this, sorry. Could just fetch as array and create map using that data. |
@rtheunissen thank you. If it implement magic method class Ds\Map
{
function __set($key, $value)
{
$this[$key] = $value;
}
} or Ds\Map implement the ArrayAccess interface. It's my imagine. |
I'm not sure if array access would solve this. What you could do is create a class like Might be faster to just fetch an array and instantiate a new map with it, will need to benchmark that yourself to see what works best for you. |
This might also be related (and fixed) to #62 |
#62 fixes the boolean cast issue but we still can't fetch into any of the structures. |
output:
output:
The text was updated successfully, but these errors were encountered: