fix usages
psr fix
move getType to the bottom
add many2one