made relation's set accepts array input.
set relations. use $info here.
outputs type as well.