propelorm / Propel3

High performance data-mapper ORM with optional active-record traits for RAD and modern PHP 7.2+
MIT License
251 stars 35 forks source link

Replaced tabs with spaces in generated code fixes #4 #79

Closed nymo closed 5 years ago

nymo commented 6 years ago

This is my implementation to replace tabs with spaces in generated code. Solution is not the best because the library which I had to extends uses a lot of private class member variables.

New default settings are 4 spaces for indentation. Configuration is possible through new method setWriterOptions in src/Propel/Generator/Code/ModelGenerator.php

If the place for the new classes does not fit your expectations then let me know.