Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WDT] 404 on postLoad Doctrine event with File #19548

Closed
acoquoin opened this issue Aug 5, 2016 · 1 comment
Closed

[WDT] 404 on postLoad Doctrine event with File #19548

acoquoin opened this issue Aug 5, 2016 · 1 comment

Comments

@acoquoin
Copy link

acoquoin commented Aug 5, 2016

Hello :)

I have a very simple code which generates a 404 for the WTD (symfony 3.1.1).
I have a postLoad Event from Doctrine, here the code :

class BrochureListener ...
use Symfony\Component\HttpFoundation\File\File;

    public function postLoad(LifecycleEventArgs $args)
    {
        // ....
        $translation->setPdf(new File(sprintf('%s/%s', $this->uploadDirectory, $pdf)));
        // ...
    }

My problem is, when i call File, the WDT seems fail and boom : 404 on the WDT.
I dunno if the problem is symfony, my code or Doctrine :/
Any idea ?

@javiereguiluz
Copy link
Member

@acoquoin in the GitHub repository we only discuss about Symfony bugs and new features. For now, this looks like a Symfony usage question and not a confirmed bug. Please use any of the support alternatives shown in http://symfony.com/support to ask the community about this. If the Symfony bug is confirmed, we'll reopen your issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants