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

find[ByXXXXX] not returning anything #73

Closed
davehibshman opened this issue Sep 4, 2018 · 1 comment
Closed

find[ByXXXXX] not returning anything #73

davehibshman opened this issue Sep 4, 2018 · 1 comment

Comments

@davehibshman
Copy link

Using version 2.10.

  • ::register call add a user with username = admin

    • succeeds
    • returns with id 1
  • Immediate and subsequent calls to findUsers(), findUserById(1), or findUserByUsername("admin")

    • all succeed but do not return any data
    • debugged through FindBy, handleFindMiltiple, even into enygma\Modler\Model
    • enygma\Modler\Model load appears to receive the data and call setValues, but when inspecting these Model class instances being into the collection they are empty.
      • The object has no properties. print_r reports {};

Followed all installation directions. I installed to an existing database. Looks O as in debugging I am getting the data from the database. It seems converting it to a collection/model fails.

MySql version: Ver 14.14 Distrib 5.7.23, for Linux (x86_64)

@davehibshman
Copy link
Author

Thought I was print_r'ing the returned objects, but I was json_encoding them which prints {}. Print_r shows data is indeed returning. Closing as user error.

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

1 participant