Korzystając z Zend_Db_Table pobieram sobie wiersz po primary key.
Tabela składa się z różnych kolumn, int,float,varchar,date
<?php $row= $model->find(23)->current(); ?>
W rezultacie obiekt zawiera wszystkie pola typu string. Dodatkowo float zamienia . na ,
Kod
object(Zend_Db_Table_Row)#41 (6) {
["_data:protected"]=>
array(7) {
["entry_id"]=>
string(7) "4162127"
["project_id"]=>
string(7) "1327267"
["person_id"]=>
string(7) "1759771"
["entry_date"]=>
string(10) "2007-08-29"
["entry_description"]=>
string(4) "hehe"
["entry_hours"]=>
string(4) "5,08"
["todo_item_id"]=>
string(1) "0"
}
["_data:protected"]=>
array(7) {
["entry_id"]=>
string(7) "4162127"
["project_id"]=>
string(7) "1327267"
["person_id"]=>
string(7) "1759771"
["entry_date"]=>
string(10) "2007-08-29"
["entry_description"]=>
string(4) "hehe"
["entry_hours"]=>
string(4) "5,08"
["todo_item_id"]=>
string(1) "0"
}
Miał ktoś z tym problem?
BazaDanych: MySQL Engine: InnoDB
EDIT:
Problem leży po stronie Locale. jest ustawione na pl_PL i . zamieniana jest na ,
Poradziłem sobie.