-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Bug with APCu : "ORM TreeListener does not support tree type:" #808
Comments
hi, it looks like extension metadata cache was emptied for unknown reasons. I tested it before with apc and php 5.3 and it worked perfectly well. Cases are:
I cannot know what can cause it. What mapping driver is used for your tree metadata? Annotation, yaml or xml? |
I use the annotation drive. Here is my entity class : use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Rubric
*
* @ORM\Table("rubric")
* @Gedmo\Tree(type="nested")
* @ORM\Entity
*/
class Rubric
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @Gedmo\TreeLeft
* @ORM\Column(type="integer")
*/
private $treeLeft;
// treeRight, etc.
} |
How extension listeners are initialized? You use symfony2 or stof bundle or something else? Does it share annotation reader with listeners, like in example or like in symfony2 configuration ? Try changing it, if it is shared - do not, if it is not - do. |
Yes I use symfony2 + stof extension bundle. Apparently, the annotation reader is shared according to this file. I will try to remove the method call and see if anything changes tomorrow. |
I have same issue with PHP5.5 APCu on Ubuntu |
For everyone having this issue: krakjoe/apcu#35 |
+1 |
Hello,
First of all thanks for your great extensions.
I have a tree type entity configured with annotation in "nested" tree type.
I activated PHP5.5 APCu extension, and after some time, a weird exceptions is throwned:
(with nothing after the "type:")
The website works fine some hours and does this after.
If I clear the APCu cache, all works fine for several hours.
Here is the stacktrace :
Do you have some hint that could help me resolve this bug ?
The text was updated successfully, but these errors were encountered: