I have a table in my database called student
, and when I try using
StudentPeer::retreiveByPk($stid)
I get a fatal error saying
Call to undefined method StudentPeer::retreiveByPk
Is there a way I could load my model dynamically? Is there a way I could see all the models that have been auto-loaded? Also is there a way for auto-loading my model for this module?
I am using symfony 1.3.
You've mispelled the method call - it should be StudentPeer::retrieveByPk($stid)
. The model should auto-load fine, but I wouldn't expect it to on undefined methods.