-
Notifications
You must be signed in to change notification settings - Fork 54
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
[2.x] Date fields aren't converted to object #234
Comments
The ORM does this by introspecting the SQL schema and then using the Type classes to cast results as they are read from the statement objects. An analogous system for elasticsearch could be added to |
Great. I'm trying figure how exactly that works:
Did I miss something? |
I was referring to the |
@markstory I did a prototype based on 2.x branch (my env have Cake 3.x + elasticsearch 6.x). Tried to be simple as possible, so, I included a Thinking how to tests that before opening a PR. Any chance to apply this on both |
Updated unit tests
Updated unit tests
Implement a basic type conversion support as in cakephp#234 Updated unit tests Move exception to the same path as master branch
Implement a basic type conversion support as in cakephp#234 Updated unit tests Move exception to the same path as master branch
Implement a basic type conversion support as in cakephp#234 Updated unit tests Move exception to the same path as master branch Include some tests to esLogger config
This issue is stale because it has been open for 120 days with no activity. Remove the |
I hadn't time to finish the PR yet, but I will. |
When searching on tables, we have automatically conversions from database types to PHP equivalents, but on indexes, they seen always text type.
As Index can have Mapping definition, including text, boolean, numeric, timestamp, how can I teach Index / Document to convert these types to PHP equivalents?
The text was updated successfully, but these errors were encountered: