Fixed notice and phpdoc improvements

Phpdoc fixes for Model and Relarion classes.

Commit 5ef1e6884b01b067c81dcc3d78e3a2e460545617 must be ported to 1.6/master — bug is there also.