Tag Archives: symfon

Using Namespaces in Propel 1.5

Propel 1.5 does not cease to please the pace of development and introduction of new features, just a few weeks ago, Francois Zaninotto(project leader Propel) has published a new opportunity to edit the nested forms using mergeRelation and embedRelation and the other day to use Namespaces in the generation of models.

Propel 1.5 allows the use of Namespaces in files describing your model if you are using in the php version 5.3

Add the use of models is very simple:






A model class:

/ / Use fully qualified name
$ Book = new \ Bookstore \ Book ();
/ / Or use an alias
use Bookstore \ Book;
$ Book = new Book ();
/ / Remember to use the \ namespace for core Propel classes in this case
$ Con = \ Propel:: getConnection ();
$ Book-> save ($ con);
More details can be read in the blog Francois Zaninotto Continue reading

Posted in Symfony | Tagged , , , , , | View Comments
Get Adobe Flash playerPlugin by wpburn.com wordpress themes

DecentMind is Digg proof thanks to caching by WP Super Cache