Zend Framework + Doctrine 1 Integration

Ben­jamin Eber­lei writes; Hello everyone,

I com­pleted a first ver­sion of Zend + Doc­trine 1 inte­gra­tion today and want to share it with all you. Since cur­rently the sta­tus on a 1.11 release is unclear I con­tacted all the con­trib­u­tors to var­i­ous Doctrine-related com­po­nents and com­bined them into a sin­gle release and wrote some doc­u­men­ta­tion on all the dif­fer­ent parts and how they relate to each other.

http://github.com/beberlei/zf-doctrine

The code is under the New BSD License. There is a com­pre­hen­sive get­ting started guide shipped with the Github Project.

The fol­low­ing parts are included in this release:

  • Appli­ca­tion Resource con­tributed by Matt Lurz
  • Dynamic Form Gen­er­a­tion con­tributed by Jani Hartikainen
  • Pag­i­na­tor Adapter con­tributed by Matt Lurz and Juozas Kaziukenas
  • Zend Tool Provider and mod­u­lar Zend Project Style Support

Thanks to all the con­trib­u­tors and var­i­ous other peo­ple that con­tributed ideas and code.

For any feed­back regard­ing this inte­gra­tion, you can use the issue tracker on Github.

This release depends on Doc­trine 1.2.2 to allow model code-generation from YAML files that sup­ports Zend Frame­work Mod­u­lar projects and their direc­tory structure.

Most of the cur­rent glue code out there is made obso­lete by gen­er­at­ing Mod­els that fol­low the Zend Frame­work nam­ing con­ven­tions, into Zend Frame­work models/ direc­to­ries. Addi­tion­ally there is also sup­port for mod­u­lar appli­ca­tions whose model classes should fol­low the PEAR nam­ing schema.

Addi­tion­ally the dynamic form sup­port allows to cre­ate sim­ple forms that allow to cre­ate and edit Doctrine_Record instances and their relations.

This is a great help to rapidly pro­to­type admin forms (how­ever sup­port for more com­plex forms is not yet included).

Since both projects are cur­rently very focused on their 2.0 releases, this release aims to glue all the exist­ing code for Doc­trine 1.x and Zend Frame­work inte­gra­tion 1.x together, giv­ing them a plat­form to flourish.

greet­ings,
Ben­jamin

Tags: , , , , , ,

Leave a Comment

*

Get Adobe Flash playerPlugin by wpburn.com wordpress themes