#5645: $useDbConfig does not work when using deferent database in one action
------------------------+---------------------------------------------------
    Reporter:  niwazoh  |         Owner:          
        Type:  Bug      |        Status:  reopened
    Priority:  Medium   |     Milestone:  1.2.x.x 
   Component:  Model    |       Version:  RC3     
    Severity:  Normal   |    Resolution:          
    Keywords:           |   Php_version:  n/a     
Cake_version:           |  
------------------------+---------------------------------------------------
Comment (by niwazoh):

 I checked Object dump and it shown with right informations.[[BR]]
 And model class definition is correct because if I create table to default
 database[[BR]]
 it works($useDbConfig is not effect in this case).[[BR]]
 [[BR]]
 Thanks,
 [[BR]]

 {{{
 2008-10-23 11:05:14 Debug: Option Object
 (
     [useDbConfig] => option
     [validate] => Array
         (
         )

     [useTable] => options
     [displayField] => id
     [id] =>
     [data] => Array
         (
         )

     [table] => options
     [primaryKey] => id
     [_schema] => Array
         (
             [id] => Array
                 (
                     [type] => integer
                     [null] =>
                     [default] =>
                     [length] => 10
                     [key] => primary
                 )

             [member_id] => Array
                 (
                     [type] => integer
                     [null] =>
                     [default] =>
                     [length] => 10
                     [key] => index
                 )

             [username] => Array
                 (
                     [type] => string
                     [null] =>
                     [default] =>
                     [length] => 50
                 )
             ...
             [created] => Array
                 (
                     [type] => datetime
                     [null] =>
                     [default] =>
                     [length] =>
                 )

         )

     [validationErrors] => Array
         (
         )

     [tablePrefix] =>
     [name] => Option
     [alias] => Option
     [tableToModel] => Array
         (
             [options] => Option
         )

     [logTransactions] =>
     [transactional] =>
     [cacheQueries] =>
     [belongsTo] => Array
         (
         )

     [hasOne] => Array
         (
         )

     [hasMany] => Array
         (
         )

     [hasAndBelongsToMany] => Array
         (
         )

     [actsAs] =>
     [Behaviors] => BehaviorCollection Object
         (
             [modelName] => Option
             [_attached] => Array
                 (
                 )

             [_disabled] => Array
                 (
                 )

             [__methods] => Array
                 (
                 )

             [__mappedMethods] => Array
                 (
                 )

             [_log] =>
         )

     [whitelist] => Array
         (
         )

     [cacheSources] => 1
     [findQueryType] =>
     [recursive] => 1
     [order] =>
     [__exists] =>
     ...

     [_log] =>
 )
 }}}

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5645#comment:4>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to