Author: ornicar2
Date: 2010-02-02 21:55:13 +0100 (Tue, 02 Feb 2010)
New Revision: 27449

Modified:
   
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
Log:
[Diem]
- record_loremizer service creates more active records than inactive ones

Modified: 
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
===================================================================
--- 
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
  2010-02-02 20:54:23 UTC (rev 27448)
+++ 
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
  2010-02-02 20:55:13 UTC (rev 27449)
@@ -128,7 +128,14 @@
         $val = $this->getStringValForColumn($column);
         break;
       case 'boolean':
-        $val = (bool)mt_rand(0,1);
+        if('is_active' === $columnName)
+        {
+          $val = (bool)mt_rand(0, 2);
+        }
+        else
+        {
+          $val = (bool)mt_rand(0, 1);
+        }
         break;
       case 'blob':
       case 'clob':

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to