i don't know if you mean to create a func_door_rotating or not, but heres the keyvalues it used:
classname
model
origin
axes
distance
wait
speed
onoffmode
immediatemode
angles
rendercolor
its been a long time since i've done anything with ents, but try setting all these before spawning it. Most importantly, set origin before spawning it. i believe a door returns to the 0,0,0 origin for the ent, so i'm basically hoping that setting origin before spawning will set the mins/maxs and absmins/absmaxs. If that doesn't work, try setting the mins/maxs and absmins/absmaxs yourself instead of origin.