Prior to the lawn gnomes of Heinz Doofenshmirtz family being taken away, Heinz Doofenshmirtz's father won a spitzenhound in a game of "Poke the Goozim with a Stick". His father named the dog "Onlyson" because the dog was like the son he never had.(he had one but its not specified in any episode if He is his son)
Onlyson became an award-winning show dog that brought his father fame and fortune. This should have allowed the Doofenshmirtz family to prevent the lawn gnome from being repossessed or to buy it back, but it did not. Either the family became poor again or Heinz's father hid the money and prizes from their creditors. The look exchanged between Heinz's father and Onlyson as they won yet another competition (see the third picture below), coupled with his constant admonishments that Heinz not move while Heinz was being the lawn gnome, seems to indicate that he deliberately placed Heinz in that situation. ("Got Game?")
This mis-treatment as a child resulted in Heinz Doofenshmirtz having a fragile self-esteem, and caused him to seek revenge as an adult. His first act of revenge was to steal all the lawn gnomes in the Tri-State Area. ("Lawn Gnome Beach Party of Terror")
- The reason for naming the dog "Onlyson" indicates that these events occurred before Roger became part of the family, since Roger is the more successful of the two brothers and was his mother's favorite.