Updated phpdoc to model generator (type hinting etc).

Also implemented one-to-many remove method