title: PHP - Doctrine Store File (Binary in Database)
body: <p>I'm looking for an example of how to store files in the database with doctrine.
  Unfortunately i cannot find much information online.</p>
  
  <p>I thought of a schema like:</p>
  
  <p><strong>file</strong>: id, fileName, fileExt, fileSize, fileMime, modifiedAt, createdAt</p>
  
  <p><strong>fileData</strong>: id, file_id, binaryData, modifiedAt, createdAt</p>
  
  <p>Could someone give me an entity example with a function to store/retrieve files? </p>
  
  <p>Thanks in advance!</p>