I have a project created using Symfony 1.4.15. Because I like Doctrine 🙂 I created a admin module using the command: “doctrine:generate-admin”. All works fine when I “save & add” but when I “save” only I get this error:
500 | Internal Server Error | Doctrine_Record_UnknownPropertyException |
Unknown record property / related component “name” on “Ncargo”
and I not know how to fix this, any help on this? This happen with all the modules generated by doctrine:generate-admin task.
Cheers and thanks in advance
In this case, I would recommand to:
rebuild the model classes:
./symfony doctrine:build --all-classesclear the cache:
./symfony ccWhat’s happend here is that Doctrine think there is a “name” field on your model.
You should also send us your generator.yml, have you set any “name” in it? Send us your model too.