title: Symfony2 applicaiton's with common code
body: <p>I've have sf2 based <strong>api and admin apps</strong>, <em>it's separated</em>. But it uses one database. Now api works with database through doctrine entities and admin project is using native sql calls. And it's very annoying.</p>
  
  <p><strong>So my decision is to make common code reachable for 2 application. Mostly it will be doctrine entities.</strong></p>
  
  <p>Maybe someone have made something like that and have a good mechanizm. <strong>Ideas are welcome too.</strong></p>
  
  <p>For now I have only one idea, putt the entities in some other dir(<strong>synced with 3d repository</strong>) and config both projects to use it. 
  <em>But I can't get rid of thoughts that it can be made in simpler way.</em></p>