[FLOW3-general] Problem with registration of DateTime Object
Jan Grubenbecher
jg at hochsprung.net
Thu Oct 14 09:50:05 CEST 2010
Hi,
Am 20:59, schrieb Karsten Dambekalns:
> That sounds like you try to create a DateTime instance via the object
> manager, that cannot work.
>
> Can you show the code of Post and how you create the Post instance?
I installed the example blog application from the package list on forge/git.
The post object has an attribute date that has the type DateTime.
Here is the class definition:
class Post {
[...]
/**
* @var DateTime
* @identity
*/
protected $date;
[...]
When I try to create a new post, I get the error mentioned in my former
message. I'm not sure, that I understand the hole process in checking
validity of parameters when an object is created via form posts.
Do I have to implement a DateTime Object in the FLOW3 framework, or can
I use the one from PHP?
Kind regards
--
Jan Grubenbecher
More information about the FLOW3-general
mailing list