0

I change schema.yml from time to time and execute:

symfony propel:build-all-load

but the lib/_model and lb/model do not reflect my changes and cause: Call to undefined method

akiva
  • 2,677
  • 3
  • 31
  • 40

2 Answers2

2

Seems strange - did you do symfony cc (clear cache) afterwards?

Have you also tried doing symfony propel:build-model on its own to make sure the model files are being regenerated OK?

richsage
  • 26,912
  • 8
  • 58
  • 65
  • if you've added classes, you need to clear the cache as symfony builds a load of auto-load info up from your directory structure which it won't rebuild unless you clear it. – benlumley Jul 16 '09 at 08:11
0

As a starting point, clear the cache

symfony cc

Then try using

symfony propel:build-forms

beforehand.

Jon Winstanley
  • 23,010
  • 22
  • 73
  • 116