I have two hives in my fenced back yard with three golden retrievers.  They
co-exist perfectly.  There was, however, an initial educational stage for the
dogs.  This proved relatively painless, but immensely enlightening.  They now
give the bees their space and use the rest for themselves.