fixed pgherveou/modelfactory/issues/4
make setter  work with object and dot notation