I have a class which contains two other classes in its body:
class Leave
{
/**
* @var Day
*/
private $fistDay;
/**
* @var Day
*/
private $lastDay;
}
Day is a simple container over a php \Datetime class which implements some logic about operations on days to make code easier to read.
When I specify type of firstDay column in database as 'date', phalcon model generator maps it as 'string' while I'd like to use my custom class instead. Is there any way to do it? Making another table just for days seems to be an overkill ;-)
Cheers.