propelorm/PropelBundle — Issue #82: Overload the default base class of object
Author: maxailloud
Created: 2011-11-30 10:57:57+00:00
State: open

Using the table attribute baseClass in my schema.xml does nothing to my baseObject.

My schema.xml looks like this, maybe I made a msitake:
```xml

```

Sorry for the syntax highlighting I don't find how to do it with xml.

And so my Object doesn't extends from my baseObject class.
It's even worse with a namespaced baseObject class as I can get far because the "\" of the namespace makes an error:

[PHP Error] DOMDocument::schemaValidate(): Element 'table', attribute 'baseClass': [facet 'pattern']
The value '\Namespace\MyBundle\Model\BaseObject' is not accepted by the pattern '([\w_]+.?)+'.
[line 442 of /home/mailloud/workspace/referentiels/vendor/propel/generator/lib/task/AbstractPropelDataModelTask.php]

So to deal with that I overload the PHP5ObjectBuilder and changed the extended class.

As I'm not following Symfony master I use the 2.0 branch of the PropelBundle.