 <p>Such error can not be generated by Protector. It probably means that you assign your entity with <code>accept_nested_attributes</code> and it is exactly the instance of UrlType that invalidates, not the assignment of <code>url_type_id</code>.</p>