How to find if a door is locked?

I have tried **[Entity.GetSaveTable](** but it just doesn’t appear to work, any help?

command "lua_run ents.FindByClass( "prop_door_rotating" )[1]:Fire( "lock", "", 0 )"
23:20:28 > ents.FindByClass( "prop_door_rotating" )[1]:Fire( "lock", "", 0 )...

command "lua_run print( ents.FindByClass( "prop_door_rotating" )[1]:GetSaveTable().m_bLocked )"
23:20:30 > print( ents.FindByClass( "prop_door_rotating" )[1]:GetSaveTable().m_bLocked )...

That’s pretty much what I was doing, but I was using the function example from the wiki. By using the code directly like you have it works fine, thanks!