Following rules must apply to all constants used within Doctrine framework: class Doctrine_SomeClass { const MY_CONSTANT = 'something'; } print Doctrine_SomeClass::MY_CONSTANT;