Minor fix.

In Entity/Resource.php : There was an error. I wrote a "toString()" method that doesn't work as expected. "toString()" became "__toString()".
Other little changes.
Inserted DateTime
quick fix