Unable to delete archivable and timestampable objects #208

todeveni opened this Issue Nov 30, 2011 · 4 comments

4 participants


Trying to delete() object, which has both archivable and timestampable behaviours.

It seems that _archive tables don't inherit created_at and updated_at columns / methods.

PropelException: Call to undefined method: setCreatedAt in /WWW/vendor/propel/runtime/lib/om/BaseObject.php on line 400

Call Stack:
    0.0008     650064   1. {main}() /WWW/admin/ajax/user-remove.php:0
    0.0072    1615872   2. BaseUser->archive() /WWW/admin/ajax/user-remove.php:8
    0.0093    2052040   3. BaseUser->copyInto() /WWW/build/classes/project/om/BaseUser.php:3000
    0.0094    2064880   4. UserArchive->setCreatedAt() /WWW/build/classes/project/om/BaseUser.php:1571
    0.0095    2065232   5. BaseObject->__call() /WWW/build/classes/project/om/BaseUser.php:1571
Propel member

@fzaninotto any ideas ?


Ran into this same issue today :(

Propel member

Have you tried to define the timestampe behavior before the archivable in the xml?


That did it! Thanks @marcj!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment