Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2011.10, 4.4.1, 4.5.0, 4.6.0
-
None
-
eZ Publish 4.5
Description
Hi!
We use for our client eZ Pending Action Class. But we are forced to make a kernel override because you can not add more one record per second ... Otherwise the last record overwrites the last.
This is a problem for maintaining the site over time.
There is a pull request for changes done on our platform (if it can be used)
Thanks
Steps to reproduce
Use this code in an extension:
for($i=0;$i<50;$i++) { $rowPending = array( 'action' => 'index_object', 'created' => time(), 'param' => $i ); $pendingItem = new eZPendingActions( $rowPending ); $pendingItem->store();
Only one row will show up in the //ezpending_actions// table, instead of 50.
The bug looks to show only if we use //time()// in the //created// attribute. If we use //NULL// everything looks correct.