I generated a model with oil and moved it to a package. The problem is, that the created_at and updated_at fields remains 0 on insert and on every save event.
This package is an other package, which has the Auth namespace. I call this extauth, this will be a driver to the auth package. All the classes and models are in the Auth namespace.
In the bootstrap of my package I load the auth package to make sure that it is loaded. I am using Model_User without the Auth namespace, because the classes I use it in are in the Auth namespace as well.
I tried putting '\\' before the Orm in the observers array, but did not work. I don't really understand this. I am sure this is my fault, but I can't find the bug.
Hi, I finally found it, but this is rather the error of the generation. I used oil to generate my model. As you can see, created_at and updated_at are not in the property list. This is how the oil generated it. When I add the created_at and updated_at properties to the model property list, everything works fine.