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

phalcon 2.0 oracle model->find() #10135

Closed
zsj1029 opened this issue Apr 22, 2015 · 4 comments
Closed

phalcon 2.0 oracle model->find() #10135

zsj1029 opened this issue Apr 22, 2015 · 4 comments

Comments

@zsj1029
Copy link

zsj1029 commented Apr 22, 2015

oracle

exception e
#0 [internal function]: Phalcon\Mvc\Model\Manager->getReadConnection(Object(StudentBase)) #1 [internal function]: Phalcon\Mvc\Model->getReadConnection() #2 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, NULL, NULL) #3 [internal function]: Phalcon\Mvc\Model\Query->execute(NULL, NULL) #4 D:\webroot\choose\app\controllers\SessionController.php(58): Phalcon\Mvc\Model::find(Array) #5 [internal function]: SessionController->startAction() #6 [internal function]: Phalcon\Dispatcher->dispatch() #7 D:\webroot\choose\public\index.php(50): Phalcon\Mvc\Application->handle() #8 {main}

mycode
line:58
$user = StudentBase::find(array(
"student_code = '$code'",
"del_flag" => "0"
));

what‘s wrong? what should i do
help me thx

@zsj1029
Copy link
Author

zsj1029 commented Apr 22, 2015

if i use mysql
code is normal

@zsj1029
Copy link
Author

zsj1029 commented Apr 22, 2015

how to print sql statement when i use model-》find

@andresgutierrez
Copy link
Contributor

Possible reference #10160

@andresgutierrez
Copy link
Contributor

Could you please try again compiling from the 2.0.x branch?

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