Fixed warning while using from_array() on new instance

Method from_array() produced warnings while check existence of relations on new objects. Correct that.

Also was accidentally committed some phpdoc improvements :D