-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fluent builder method [nestedSet] does not exist #40
Comments
Hi @alexgiuvara!
|
the same thing: |
It works when I include namespace |
Do you have a working example for Fluent extensions? Thank you |
@alexgiuvara all fluent methods and extension macros are tested, you can take a look at the tests to see usage. But both your errors sound like you're missing a service provider. |
I replaced that provider with my own because of
|
I'm sorry, but I can't help you if you're replacing part of the code that we deem necessary and then saying something doesn't work. I'll close this issue and add a new one regarding the outdated docs on Tree. |
Packages:
"laravel-doctrine/orm": "1.2.*",
"laravel-doctrine/extensions": "1.0.*",
"gedmo/doctrine-extensions": "^2.4",
"beberlei/DoctrineExtensions": "^1.0",
"laravel-doctrine/fluent": "^1.1"
'
managers' => [
'default' => [
'meta' => 'fluent',
...
1. (fixed) I received "[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@doctrine\ORM\Mapping\MappedSuperclass" in class Gedmo\Translatable\Entity\MappedSuperclass\AbstractPersonalTranslation does not exist, or could not be auto-loaded."
I fixed this error with a custom ServiceProvider:
public function boot()
{
AnnotationRegistry::registerFile(base_path('vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php'));
GedmoExtensions::registerAll(new MappingDriverChain());
}
2. "Fluent builder method [nestedSet] does not exist"
public function map(Fluent $builder)
{
$builder->bigIncrements('id');
$builder->string('name')->nullable();
$builder->nestedSet(); //here it fails
}
Checking if database connected to default entity manager needs updating...
[InvalidArgumentException]
Fluent builder method [nestedSet] does not exist
The text was updated successfully, but these errors were encountered: