Use modelIdAttr to obtains model id