title: Doctrine 2: How to search for an entity by its association's value?
body: <p>Let's say I have an Account entity, and an AccountData entity (which stores some less used properties, like gender, etc).</p>
  
  <p>The relationship between Account and AccountData is one-to-one, and the Account "owns" AccountData.</p>
  
  <p>I'm trying to figure out, using Doctrine 2 / Symfony 2, how to pull up an Account according to a property in AccountData.</p>
  
  <p>For example, how do I search for all Accounts with AccountData->gender = 'female'?</p>