Comments (6)
Indeed I succeeded to reproduce it.
It seems to be related to the class loading order in Symfony console context. Therefore every command is affected.
It's a weird a deep issue, I'll try to figure it out ASAP.
Thanks for the report!
from symbok-bundle.
I was wrong about my previous guess.
As mentioned in #50, only some of doctrine related commands were affected. You can have a look at the detailed description in the related PR, which should fix it in 2.2.0
from symbok-bundle.
Hi!
What kind of fixtures are you talking about? Can you paste a tiny example?
from symbok-bundle.
I add Data annotation in my class and run php bin/console symbok:update:classes
.
My class was updated: Did add @method annotation. Ok!
But I use bin/console to execute Doctrine Fixtures don't work.
php bin/console doctrine:fixtures:load -n
> purging database
> loading App\DataFixtures\AvaFixtures
> loading App\DataFixtures\ProgramaFixtures
In ProgramaFixtures.php line 24:
Attempted to call an undefined method named "setNome" of class "App\Entity\Programa".
doctrine:fixtures:load [--append] [--group GROUP] [--em EM] [--shard SHARD]
[--purge-with-truncate] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version]
[--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
My Class:
<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Mtarld\SymbokBundle\Annotation\Data;
/**
* @ApiResource ()
* @Data ()
* @ORM\Entity (repositoryClass=ProgramaRepository::class)
* @method mixed __construct(int $id, string $nome)
* @method int|null getId()
* @method self setId(int $id)
* @method string|null getNome()
* @method self setNome(string $nome)
*/
class Programa { (...)
from symbok-bundle.
Thanks for the example, I'll have a look ASAP, it's strange indeed
from symbok-bundle.
I am using Symfony 5.0.8
from symbok-bundle.
Related Issues (19)
- Write documentation
- Add composer scripts
- Add Equals annotation
- Bundle is not compatible with Symfony 4.4 HOT 1
- Bundle fails on symfony 4.4 when trying to eval generated class HOT 1
- Bundle version 2.x causes @Vich\Uploadable annotation on entity to be removed HOT 6
- Improve functional tests
- Usage of static analysis tools HOT 1
- Non-standard global annotations make compilation failing
- Write readme
- Add general configuration
- Compiling Fails on nested Annotations HOT 3
- Interfaces skip HOT 1
- PHP 8 support HOT 11
- Add config for caching files depending on Symfony environment
- Add CI
- Make configurations optional
- Symfony3 compatibility
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 symbok-bundle.