How to set a user in first time fixture load in Symfony?
<p>In my Symfony project there is a <code>User</code> entity which I used as a user provider. It has these fields:</p>

<pre><code>User
- id (PK)
- name
- email
- created_by 
</code></pre>

<p>The <code>created_by</code> field (which contains a reference to who created this user) will be automatically set by blameable-behaviour. When deploying the project there are no users in the system. I want to persist users by fixture load. It currently fails because at the time I run them there are no users. 
Is there any solution in Symfony for this??</p>

<p>Please don't suggest inserting users directly into the database or use another table and rename like answers. I'm looking for an elegant solution to this.</p>