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 by id #14

Closed
DiegoViniciusCosta opened this issue Jan 31, 2017 · 0 comments
Closed

find by id #14

DiegoViniciusCosta opened this issue Jan 31, 2017 · 0 comments

Comments

@DiegoViniciusCosta
Copy link

Olá,
Estou tendo problema com o um find filtrando pelo id.

// Esse código funciona
$user = $this->Users->find('all', ['conditions' => ['name' => "teste"]]);

// Esse código não funciona
$user = $this->Users->find('all', ['conditions' => ['_id' => "5890c6bee84c69843d8b456a"]]);

//Também tentei buscar por 'id' apenas e não '_id'
$user = $this->Users->find('all', ['conditions' => ['id' => "5890c6bee84c69843d8b456a"]]);

Não sei que estou fazendo de errado.

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

2 participants