[Solved] Propel with CodeIgniter – Fatal error: Undefined class constant ‘Tablename::PEER’

When we have the name collision i.e. name of Propel generated and CodeIgniter Controller class are same then this error occurs. Fatal error: Undefined class constant ‘Users::PEER’ in /media/htdocs/htdocs/project/application/libraries/propel/runtime/lib/query/ModelCriteria.php on line 68 The error occured to me because I had the same name for the Propel generated “Users” Model class and I also had the … Continue reading “[Solved] Propel with CodeIgniter – Fatal error: Undefined class constant ‘Tablename::PEER’”