propelorm/PropelBundle — pull request #75 by havvg (2011-11-25 14:43:55+00:00)
Title: fix resulting package names to not include folder

This changes the resulting package names in generated models.

The path to the project will be removed from the package, as the base directory is the project directory itself.
The `package` attribute on a `database` or `table` element will be used as a full-path package based on the projects root directory.

Namespaces will be prefixed with the missing path elements to complete the full package path. This ensure to have namespaced models (e.g. from bundles) to be in their correct path.

## Example generation using the FOSUserBundle

```php
setPackage('Users/havvg/Ormigo/repository/ormigo/vendor/bundles/FOS/UserBundle/Propel');
// ...
} // initialize()

// ...

} // GroupRoleTableMap
```

## With the patch applied

```php

setPackage('vendor.bundles.FOS.UserBundle.Propel');
// ...
} // initialize()

// ...

} // GroupRoleTableMap
```