View Single Post
  #1  
Old 09-04-2019, 11:52 PM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default Date as column type?

I am writing a module with custom model, whose entities have dates as property.
It looks like x-cart handles dates as integers via timestamp, but I will be importing the entities from a CSV file, in which they are entered as dates. So my question is, can we do something like
Code:
/** *@Column (type="date") */ protected $name
I don't need to do much with stored dates, I just need to store, view, modify.
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote