luckily, my husband is absolutely crazy about Miss Waffles, so he watches her whenever i leave and vice versa...and whenever we go somewhere together (which is never for more than around 3 hours), we put her in her puppy pen.
i got the one by Iris on amazon...best investment ever: it's the perfect size for a yorkie -- has enough room for her food bowl, automatic waterer, medium sized puppy pad, a few toys, and her adorable indoor doghouse -- in which i stuffed her entire bed into, lol. when we're home, we leave the pen door open, so she can come and go as she pleases.
and even though we allow her to sleep in bed with us, she always leaves during the night to go in her pen and sleep in her doghouse!
Amazon.com: Iris CI-604 Indoor/Outdoor Plastic...