Fix typings creating fromObject & fromRow entities