Adding some simple lines enables propel's graphviz dot file generation:
in /data/symfony/tasks/sfPakePropel.php add:
pake_desc('create a graphviz dot file for current model');
pake_task('propel-graphviz', 'project_exists');
and
function run_propel_graphviz($task, $args)
{
_propel_convert_yml_schema(false, 'generated-');
_propel_copy_xml_schema_from_plugins('generated-');
_call_phing($task, 'graphviz');
$finder = pakeFinder::type('file')->name('generated-*schema.xml');
pake_remove($finder, array('config', 'plugins'));
}
Now you can use it like that:
> symfony propel-graphviz
...
propel > graphviz:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating Graphiz for YOUR Propel |
[echo] | project! |
[echo] | |
[echo] +------------------------------------------+
...
This creates a folder "graph" in your projects folder containing a "schema.dot" file which can be converted to e.g. a PNG file using the graphviz package from http://www.graphviz.org/