Ron
Ron

Reputation: 23516

Zend Framework 2 - Doctrine 2 Model Forms

Is there a way to autocreate forms based on the models I defined within Doctrine?

In Django its a basic feature. I found some old sources where someone had tried to implement it by himself... but nothing up-to-date or official-looking

These model forms save loads of time. I do ask myself why people don't complain about this (possibly) missing feature...

Upvotes: 0

Views: 368

Answers (1)

Hikaru-Shindo
Hikaru-Shindo

Reputation: 1901

Zend 2 cannot create a form from the Entity itself. Doctrine 2 is not even part of the framework or tied to it as close as to Symfony 2.

You may use annotations in your entity to hint all necessary information for creating a form from it using the annotation builder.

For a deeper understanding how this works I would suggest you to look it up in the Zend 2 Documentation.

Upvotes: 1

Related Questions