The problem will be "parsing the comments". It's easier to derive your
actions from specific comments than arranging unstructured content.
The user has to define his needs anyway, so it doesn't really matter
if he writes one or two more comment blocks for doctrine. This would
prevent us from having to parse the comments. At the moment we have
{doctrine:actAs /} as the main and most used comment option i think.
This one is very strong, because you can arrange almost everything.
> {doctrine}
> minlength: 12
> email: true
> {/doctrine}
>
> lastly parse the foreign key comment for additional information there:
This is already implemented, just try the code beneath in a comment of
a column, and it will be passed to the output
{doctrine:validators}
email: true
{/doctrine:validators}
> ie:
>
> {doctrine}
> foreignAlias: foo
> alias: bar
> {/doctrine}
>
> This would allow for additional control and remove the need for adding
> additional features as they are released. This may require some work
> for backwards compatibility but I think would give a better overall
> control to the end user.
Thats true. We can arrange this even without breaking backwards
compatibility, just by adding a suffix.
{doctrine:rawRelation}
foreignAlias: foo
alias: bar
{/doctrine:rawRelation}
This would be easy to implement, except that the output would be
doubled (we have to replace the automatic generated output). On the
other hand it's a feature of the plugin, to automate as much as we
can, otherwise you could write the yaml by hand :)
J.