propelorm / sfPropelORMPlugin

symfony 1.x plugin for Propel.
http://www.propelorm.org/
Other
109 stars 95 forks source link

Fix generator problem when using with namespaces #191

Closed e1himself closed 11 years ago

e1himself commented 11 years ago

Generator falls with error when generating admin module for model with namespaces defined. It should use getClassName() instead of getPhpName() in this case:

Sample schema.yml:

propel:
  _attributes:
    package: lib.model.Acme.Model
    namespace: Acme\Model
  article:
    id: ~
    title: varchar
$map->getClassName(); // \Acme\Model\Article
$map->getPhpName(); // Article
willdurand commented 11 years ago

thanks!