Wednesday, May 30, 2012

Re: find conditions fatal error

already fix this .
https://bitbucket.org/odin88/cakephp-2.0-oracle/changeset/535a4133a59e

On Tuesday, 22 May 2012 19:35:13 UTC+8, rahajiyev wrote:
I'm trying to use ported Oracle support with Cake 2.1.2
(thanks to http://www.hassanbakar.com/2012/01/09/using-oracle-in-cakephp-2-0/)

Unfortunately this code fails:
$this->set('hpans', $this->CrefTab->find('first', array('conditions'
=> array('cref_no LIKE' => "%$hpan"))));


Fatal error: Call to a member function quote() on a non-object in /var/
www/milli/cakephp/lib/Cake/Model/Datasource/DboSource.php on line 326

in fact any kind of array key fails instantly, except for numeric
strings.
Please help... I just must use Oracle.

Here what line 326 in DboSource.php says:
                switch ($column) {
                        ...
                        case 'string':
                        case 'text':
                                return $this->_connection-
>quote($data, PDO::PARAM_STR);

So $this->_connection isn't an object. It's probably because Cake 1.x
Oracle didn't support PDO.
How can I work around this? Any tips?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: