Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/12/2011, 10:20
sikociado
 
Fecha de Ingreso: mayo-2008
Mensajes: 44
Antigüedad: 16 años, 7 meses
Puntos: 1
Respuesta: Symfony2 + Doctrine 2 - Realizar Query

Cumple cierta parte de lo que busco, pero me da un problema de información de la fecha ya que me la entrega como un array y lo necesito solamente de la manera 12-10-2011.

La información ahora me la entrega de esta forma :
Código PHP:
[0] => Array
                (
                    [
proNumericCode] => 0003
                    
[proDescription] => PRODUCTO 3
                    
[proOnDate] => DateTime Object
                        
(
                            [
date] => 2011-11-06 00:00:00
                            
[timezone_type] => 3
                            
[timezone] => America/Santiago
                        
)                   
                    [
atv] => Array
                        (
                            [
0] => Array
                                (
                                    [
atvId] => 25
                                    
[atvDescription] => Material
                                    
[atvDate] => DateTime Object
                                        
(
                                            [
date] => 2011-12-07 00:00:00
                                            
[timezone_type] => 3
                                            
[timezone] => America/Santiago
                                        
)

                                    [
atvValue1] => 
                                    [
atvValue2] => 
                                    [
atvRange1] => 
                                    [
atvRange2] => 
                                    [
creationDate] => DateTime Object
                                        
(
                                            [
date] => 2011-12-07 15:55:57
                                            
[timezone_type] => 3
                                            
[timezone] => America/Santiago
                                        
)

                                    [
modificationDate] => 
                                )

                            [
1] => Array
                                (
                                    [
atvId] => 22
                                    
[atvDescription] => Servicio
                                    
[atvDate] => DateTime Object
                                        
(
                                            [
date] => 2011-12-07 00:00:00
                                            
[timezone_type] => 3
                                            
[timezone] => America/Santiago
                                        
)

                                    [
atvValue1] => 
                                    [
atvValue2] => 
                                    [
atvRange1] => 
                                    [
atvRange2] => 
                                    [
creationDate] => DateTime Object
                                        
(
                                            [
date] => 2011-12-07 15:55:19
                                            
[timezone_type] => 3
                                            
[timezone] => America/Santiago
                                        
)

                                    [
modificationDate] => 
                                )

                        )

                )

            [
creationDate] => 2011-12-05 16:29:30
        


La idea que el campo proOnDate me lo muestre de esta forma
[proOnDate] => 2011-11-06