[Flow] DateTime with Oracle

Axel Wüstemann | Qbus Werbeagentur awu at qbus.de
Thu Sep 26 21:21:46 CEST 2013


Hello,

I need to use an Oracle database with tables and column names not to be 
declared automatically by doctrine. So I declare all by annotations:

/**
  * @Flow\Entity
  * @ORM\Table(name="FSR_ANLANDEKTR")
  */
class DepositControll
{

	/**
	 * Datum der Kontrolle
	 *
	 * @var \DateTime
	 * @ORM\Column(name="DATUM")
	 */
	protected $date;
...
}

With the date property I get an error:

Could not convert database value "2008-03-07" to Doctrine Type datetime. 
Expected format: Y-m-d H:i:s

In Oracle I set NLS_DATAFORMAT to yyyy-mm-dd.

Is there a doctrine annotation to fix this problem?

Thank you

Axel


More information about the Flow mailing list