cakephp / datasources

CakePHP Datasources
http://cakephp.org
237 stars 115 forks source link

Bug nos relacionamentos utilizando Firebird #63

Open ghost opened 10 years ago

ghost commented 10 years ago

Created by Predominant, 9th Dec 2009. (originally Lighthouse ticket #15):


(Reported by: wladiston)

O que aconteceu

Quando utilizado o banco Firebird o nome do modelo que estou recuperando e os objetos relacionados não retornam, independente do relacionamento entre eles (HABTM, hasMany, ...):

What happened

When using the database Firebird the model name that I am recovering and related objects do not return, regardless of the relationship between them (HABTM, hasMany, ...):

$this->Model->find('first');
/*
Return:
Array
(
    [0] => Array    // here would be the model name: [Model] => Array   // aqui estaria o nome do modelo: [Model] => Array
        (
            [id] => 83
            [field1] => value1
            [field2] => value2
            [field3] => value3
        )

    [AssociatedModelName] => Array    // The associated model always returns empty
        (
        )
)
*/

O que era esperado

Era esperado que retornasse assim:

What was expected

Expected to return this:

Array
(
    [Model] => Array
        (
            [id] => 83
            [field1] => value1
            [field2] => value2
            [field3] => value3
        )

    [AssociatedModelName] => Array 
        (
            [id] => 83
            [field1] => value1
            [field2] => value2
            [field3] => value3
        )
)
ghost commented 10 years ago

10th Dec 2009, Predominant said:


(Comment by: wladiston)

Changes: priority:high

ghost commented 10 years ago

10th Dec 2009, Predominant said:


(Comment by: wladiston)

Changes: description: