Skip to content

Loading…

Data dump not working with some table names #307

Open
lrlopez opened this Issue · 0 comments

1 participant

@lrlopez

On PropelDataDumpTask.php there is the following call (@line 338):

                            $rowNode = $doc->createElement($tbl->getPhpName());

This will work if the PHP name of the table is a valid XML tag. This implies that:

  • It doesn't start with a number or punctuation char.
  • It doesn't start with XML, regardless of its case.

Should not be the case, propel-gen will fail with the following exception:
[phing] Invalid Character Error

I.e.: If a table is named "0001_activity" or "XMLresponses", the dump won't work.

There should be a mechanism to escape the table name that is also recognized by the tasks that use dumps, like "datasql".

If it is not possible to fix the problem, may be possible to have this behavior documented? I've wasted days with my project halted until I found what the problem was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.