Comments (7)
also there might be some CSS issues too
from cmf-sandbox.
sorry for being slow to investigate this. its indeed a problem with generating the proxies. when you change app/config/config.yml
doctrine_phpcr:
odm:
auto_generate_proxy_classes: true
(instead of %kernel.debug%) and then run app/console cache:clear --env=prod
the page loads.
running cache:warmup --env=prod --no-debug
does indeed generate the proxies (this should probably go into the readme) but the proxy is not found.
@uwej711 do you know why we only require the file if we generated it? should we not otherwise look if the file is there and include it in case? or should that happen somewhere else?
https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php#L87
regarding css issues: the frontend editing integration is atm relying on app_dev.php serving things. we work on cleaning this up, but might take a moment. the rest should work afaik.
from cmf-sandbox.
we should probably look at how things are handled in the CouchDB ODM and it looks quite similar there:
https://github.com/doctrine/couchdb-odm/blob/master/lib/Doctrine/ODM/CouchDB/Proxy/ProxyFactory.php
i am not sure if we expect some autoloading to trigger loading the proxy classes ..
from cmf-sandbox.
looking at the ORM the code looks slightly different:
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L84
don't have time atm to debug this .. but i suspect the issue is with the handling of the autoGenerate property
from cmf-sandbox.
ok, i will look into this. just wanted to be sure to understand what to do and not do some weird hack :-)
from cmf-sandbox.
one bug less. thanks for spotting this one, @pentarim!
from cmf-sandbox.
Thanks for quick fix @dbu & @lsmith77
from cmf-sandbox.
Related Issues (20)
- PHPCRException: The Id is immutable HOT 3
- Breadcrumb stopped working HOT 1
- Sandbox offline HOT 3
- CMF Sandbox host: "No space left on device" HOT 1
- Session-Error on live sandbox HOT 1
- Interface language vs content language switch is confusing HOT 2
- Segmentation fault on jackrabit build
- Some missing translations HOT 3
- Problem loading fixtures HOT 3
- Adjust Directory Structure HOT 1
- Use Enviroment Variables instead of parameters.yml HOT 2
- Introduce Unified Web Controller
- Introduce Make File
- Remove current vagrant box and replace by nix environment HOT 1
- Live Demo not working HOT 2
- Can't access admin backend on sandbox demo
- Exception on admin list pages HOT 1
- Admin panel content edit fails (FatalErrorException) HOT 3
- CMF Sandbox v 2.1: Load doctrine fixtures cause Exception HOT 1
- Doesn't work HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmf-sandbox.