A psychotherapist notes that a patient of hers seems to engage in a form of "splitting" wherein the patient treats the therapist almost as though the therapist is two different people. On some occasions, the patient seems to idealize the therapist and on other occasions treats her with an irrational contempt or even hatred. This behavior is most consistent with which of the following disorders?