Giter Club home page Giter Club logo

Comments (7)

lsmith77 avatar lsmith77 commented on August 15, 2024

also there might be some CSS issues too

from cmf-sandbox.

dbu avatar dbu commented on August 15, 2024

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.

lsmith77 avatar lsmith77 commented on August 15, 2024

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.

lsmith77 avatar lsmith77 commented on August 15, 2024

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.

dbu avatar dbu commented on August 15, 2024

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.

dbu avatar dbu commented on August 15, 2024

one bug less. thanks for spotting this one, @pentarim!

from cmf-sandbox.

pentarim avatar pentarim commented on August 15, 2024

Thanks for quick fix @dbu & @lsmith77

from cmf-sandbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.