omusico / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Array_flip warning #572

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set 'setOnAddForce' using 'new Zend_Db_Expr('NOW()')' expression.
[$form->setOnAddForce(array('created_at' => new Zend_Db_Expr('NOW()')));] 

What is the expected output? What do you see instead?
I receive this warning:
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER 
values! in C:\wamp\www\dev\library\Bvb\Grid\Deploy\Table.php on line 2708

Please insert the appropriate values;
                    Zend Framework version: 1.11.2
ZFDatgrid Version (Bvb_Grid::getVersion()): r1613
                          Operating system: Win XP
                               PHP Version: 5.3.0
               Database Server and version: 5.1.36

Please provide any additional information below.
Besides receiving this error, I get what I want (record on DB with correct 
data). I also can get the current datetime and pass the value to ZFDatagrid.
This is just to report.

IM

Original issue reported on code.google.com by ivomonte...@gmail.com on 1 Feb 2011 at 11:27

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 1 Feb 2011 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 3 Mar 2011 at 5:33