Using postSave method and DebugPDO in development #814

PurpleHexagon opened this Issue Jan 10, 2014 · 1 comment


None yet

2 participants


I want to use the postSave method in my subclass however the method is declared in abstract class BaseObject using type hint PropelPDO, I am currently using DebugPDO in development so cannot use the method since it will error as it will receive an object of the wrong type.

"Argument 1 passed to Db\MyClass::postSave() must be an instance of Db\PropelPDO, instance of DebugPDO given"

Since PropelPDO is a subclass of PDO type hint would need to be PDO for this to work with DebugPDO not PropelPDO. Is there a work around for this, update or something I don't know about


@intheria you have a mistake with your function type hint DebugPDO extends PropelPDO so you should not get error. Maybe you use namespace and you forget the leading backslash.

public function postSave(\PropelPDO $con = null)

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