Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>TL;DR You'll just need to generate your proxy classes manually</p> <pre><code>vendor/bin/doctrine orm:generate-proxies </code></pre> <p>Doctrine uses Proxies to connect the to database. Proxies are generated from the the Entity classes.</p> <p>In development mode, it generates a Proxies on every request because you could make changes to Entity classes.</p> <p>In production mode, it does not generate Proxies every time. For performance reason, it assumes the Proxies exist and include them directly.</p> <p>There are a few mode for Proxies generation:</p> <ol> <li>ALWAYS - It alwayes generates Proxies, this is the default setting for development mode</li> <li>NEVER - It never generates Proxies, this is the default setting for production mode</li> <li>ON_DEMAND - It only generates the Proxies if the Proxy files do not exist. The drawback of this option is that it has to call file_exists() every time which could potentially cause a performance issue.</li> </ol> <p>Now the command </p> <pre><code>vendor/bin/doctrine orm:generate-proxies </code></pre> <p>generates Proxy classes to /tmp. I would say this might still cause trouble because other applications on your server might delete these files unexpectedlly. One option is you can change your /tmp directory access permission to 1777</p> <pre><code>sudo chmod 1777 /tmp </code></pre> <p>The stricky bit '1' in front of 777 means that, although everyone can read/write to the /tmp directory, but you can only operate on your own files. i.e. You can't remove files created by other users.</p> <p>For further reading, please have a look at <a href="http://docs.doctrine-project.org/en/latest/reference/advanced-configuration.html#auto-generating-proxy-classes-optional" rel="noreferrer">http://docs.doctrine-project.org/en/latest/reference/advanced-configuration.html#auto-generating-proxy-classes-optional</a></p> <p>You can also set the Proxies directory to somewhere else so no other applications can modify them. <a href="http://docs.doctrine-project.org/en/latest/reference/advanced-configuration.html#autoloading-proxies" rel="noreferrer">http://docs.doctrine-project.org/en/latest/reference/advanced-configuration.html#autoloading-proxies</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload