[Symfony] retrieve fromArray function in baisc model


Once time I wanted to use fromArray function which had created in a model by default, but I can’t find it anywhere. At last I know the reason.

In config/propel.ini, normally it will display :

propel.addGenericAccessors = true
propel.addGenericMutators = true

But if you delete these, fromArray function will not be added when we create a new model. And I find other functions like toArray will not be added either.

Tags:

Related Posts

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts
[Mac] Upgrade to Leopard
Hello, Leopard!

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to leave a comment!