A door lock includes a housing suitable for secure attachment to a door, a cylinder body within the housing and selectively rotatable with respect to the housing, and a rotating member with a key receptacle selectively rotatable with respect to the cylinder body. The rotating member is coupled to a tailpiece. A first locking device allows the rotation of the cylinder body with respect to the housing upon the presentation of an appropriate electronic credential, and a second locking device allows rotation of the rotating member together with the tailpiece with respect to the cylinder body upon the insertion of an appropriate key in the key receptacle.