Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [ZF] Zend_Db_Table_Row i typ float
eai
post
Post #1





Grupa: Zarejestrowani
Postów: 367
Pomógł: 10
Dołączył: 20.05.2005

Ostrzeżenie: (0%)
-----


Witam.

Korzystając z Zend_Db_Table pobieram sobie wiersz po primary key.

Tabela składa się z różnych kolumn, int,float,varchar,date

  1. <?php
  2. $row= $model->find(23)->current();
  3. var_dump($row);
  4. ?>



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"
  }

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.

Ten post edytował eai 30.08.2007, 10:10:01
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 20:25