Author: bshaffer
Date: 2010-04-05 03:56:00 +0200 (Mon, 05 Apr 2010)
New Revision: 28982

Modified:
   plugins/csDoctrineActAsGeolocatablePlugin/trunk/lib/template/Geolocatable.php
Log:
expands decimal places for latitude/longitude

Modified: 
plugins/csDoctrineActAsGeolocatablePlugin/trunk/lib/template/Geolocatable.php
===================================================================
--- 
plugins/csDoctrineActAsGeolocatablePlugin/trunk/lib/template/Geolocatable.php   
    2010-04-05 01:00:58 UTC (rev 28981)
+++ 
plugins/csDoctrineActAsGeolocatablePlugin/trunk/lib/template/Geolocatable.php   
    2010-04-05 01:56:00 UTC (rev 28982)
@@ -16,16 +16,16 @@
   protected $_options = array('columns'                        => array(
                                                                                
                                                'latitude'    =>  array(
                                                                                
                                                                'name'          
=> 'latitude',
-                                                                               
                                                                'type'          
=> 'float',
-                                                                               
                                                                'length'        
=>  null,
+                                                                               
                                                                'type'          
=> 'decimal',
+                                                                               
                                                                'length'        
=>  18,
                                                      'alias'   =>  null,
-                                                     'options' =>  array()),
+                                                     'options' =>  
array('scale' => 6)),
                                                                                
                                                'longitude'     =>      array(
                                                                                
                                                                'name'          
=> 'longitude',
-                                                                               
                                                                'type'          
=> 'float',
-                                                                               
                                                                'length'        
=>  null,
+                                                                               
                                                                'type'          
=> 'decimal',
+                                                                               
                                                                'length'        
=>  18,
                                                      'alias'   =>  null,
-                                                     'options' =>  array()),
+                                                     'options' =>  
array('scale' => 6)),
                                                                                
                                ), 'fields'                             => 
array(
                                                                                
                                                                'postal'  =>  
'postal')
         );

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