<commit_before>README
======

ATTENTION
---------

This software is EXPERIMENTAL and not ready for production.
It is just a proof of concept.


What is MySQL Workbench schema exporter?
----------------------------------------

The application is intended to create:

  * Doctrine1
  * Doctrine2
  * Propel
  * CakePHP
  * ...

schema files from MySQL Workbench models (*.mwb).
It is inspired by http://code.google.com/p/mysql-workbench-doctrine-plugin/.

Doctrine behaviours
-------------------

Support for behaviours is implemented for Doctrine1. Use the comment fields in
tables.

    {d:actAs}
      actAs:
        timestampable:
          [..]
    {/d:actAs}

Foreign key name
-------------

To replace relations name by the name of the foreign key, start the foreign key name with "d:".


Option list for doctrine 1
--------------------------
  * extendTableNameWithSchemaName

Option list for doctrine 2
--------------------------
  * useAnnotationPrefix
  * indentation
  * useAutomaticRepository
  * extendTableNameWithSchemaName
  * bundleNamespace


Requirements
------------

Works with PHP 5.3 and up.<commit_msg>added a bit of docuemtnation about {d:externalRelations}<commit_after>README
======

ATTENTION
---------

This software is EXPERIMENTAL and not ready for production.
It is just a proof of concept.


What is MySQL Workbench schema exporter?
----------------------------------------

The application is intended to create:

  * Doctrine1
  * Doctrine2
  * Propel
  * CakePHP
  * ...

schema files from MySQL Workbench models (*.mwb).
It is inspired by http://code.google.com/p/mysql-workbench-doctrine-plugin/.

Doctrine behaviours
-------------------

Support for behaviours is implemented for Doctrine1. Use the comment fields in
tables.

    {d:actAs}
      actAs:
        timestampable:
          [..]
    {/d:actAs}

Foreign key name
-------------

To replace relations name by the name of the foreign key, start the foreign key name with "d:".


Option list for doctrine 1
--------------------------
  * extendTableNameWithSchemaName
  * {d:externalRelations}

Option list for doctrine 2
--------------------------
  * useAnnotationPrefix
  * indentation
  * useAutomaticRepository
  * extendTableNameWithSchemaName
  * bundleNamespace


Requirements
------------

Works with PHP 5.3 and up.
{'fraction_non_alphanumeric': 0.1848341232227488, 'fraction_numerical': 0.006031882809133994, 'mean_word_length': 2.0754966887417217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6998800', 'n_tokens_mistral': 650, 'n_tokens_neox': 616, 'n_words': 224}