Modified to work with has one and has many relations
Generalized extend
Update ModelGenerator.php
Merge pull request #38 from xavocinternational/patch-1

Patch 1