Archives


Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com

Symfony hosting done right

ServerGrove, outstanding support at the right price for your Symfony hosting needs.
servergrove.com

L'audit Qualité par SensioLabs

200 points de contrôle de votre applicatif web.
audit.sensiolabs.com

gravatar
Manage Doctrine in your browser with sfDoctrineManagerPlugin
by Jonathan Wage – October 31, 2008 – 9 comments

What is it?

This has been one of the most requested items I have received from the community, the ability to control your schema visually. Well, now it is possible with the sfDoctrineManagerPlugin. With this plugin it offers you the ability to build your Doctrine schema by using a GUI built using the symfony form framework.

I have considered developing this plugin in the past, but before the form framework this task was a very daunting one. Simply building and maintaining all the forms to control the schema information would have been scary. With the form framework, I was able to generate all my forms by combining the Doctrine schema information with the form objects and instantly I have a set of forms to manipulate this data.

Columns

Add, edit and delete columns from your models.

Columns

Relations

Add, edit and delete relationships between your models.

Behaviors

Behaviors

Enable and disable behaviors on your models.

Columns

This plugin is a good example of how the form framework in symfony can be leveraged to quickly create rich forms to manipulate your data. It implements some practices such as:

  • Totally custom widgets and validators
  • Extending and customizing existing widgets and validators
  • Detecting widget type to use based on the PHP type of variable
  • Embedding forms
  • ...much more

This plugin is available for symfony 1.2 and is in alpha state. Currently only the ability to manage your schema is possible but other features will be added in the future such as:

  • Ability to manage databases.yml
  • Integration with Doctrine migrations for updating your database after altering your schema
  • Ability to query and modify the data in your models from a web interface similar to the functionality phpMyAdmin provides
  • Ability to map relationships by the use of drag and drop functionality similar to how you would in a database designer such as DBDesigner4
  • Execute Doctrine tasks from the web browser
  • Maybe more? If you have ideas you can ping me with them at jonwage [at] gmail.com

Add a Comment

You must be connected to post a comment.

Comments RSS

  • gravatar
    #1 Gabriel said on the 2008/10/31 at 18:57
    WOW, it's just an excellent plugin, I'll use it for my next project
  • gravatar
    #2 Ujoux said on the 2008/10/31 at 19:57
    Greeeaaaaaat !
  • gravatar
    #3 Yuriy Voziy said on the 2008/10/31 at 23:19
    Where can I find all the behaviors for the doctirne?
  • gravatar
    #4 Tiago Ribeiro said on the 2008/11/01 at 00:24
    Your work has been fantastic. Thank you.
  • gravatar
    #5 hadrien said on the 2008/11/01 at 10:21
    bravo !
  • gravatar
    #6 Dejan Spasic said on the 2008/11/01 at 14:41
    A realy smart plugin. Thanks!
  • gravatar
    #7 Mariusz said on the 2008/11/03 at 16:32
    Looks great, but truthfully I would rather have working admin generator.
  • gravatar
    #8 And said on the 2008/11/03 at 22:28
    This is very nice addition.

    Am I the only one who sees article count for Category Plugins (in the right top side of this site) stuck at zero?
  • gravatar
    #9 Robert Smith said on the 2008/11/05 at 18:59
    Hi,

    it looks like interesting

    but sorry it doesn't work for me.
    i installed and actived in settings.yml but nothing to the address
    http://host.dev/myproject/sfDoctrineManagerPlugin

    It'snt the good address ?

    I'm in symfony 1.2 beta 1

    Thanks