2708 search results for Doctrine

... a bundle will be opinionated and create a service with a very short name for convenience. This is why you have services like `doctrine`, `templating` or `logger`. I hope that explains it a bit! Cheers!
weaverryan
weaverryan
Read Full Comment
... making sure your var/cache directory is writeable. And, you won't be able to use the normal Doctrine migrations system (since you need SSH access to run that command)... but yes, it is possible. But, better that you find a server with SSH! Cheers!
weaverryan
weaverryan
Read Full Comment
Hi Zied, First of all, *you* should always double check the queries inside any new migration, you can't just rely on Doctrine here. So if you see something that could break your production, i.e. potential data loss ...
... object created in "Clone", I would understand why. But this was a brand new query outside the creating function, you'd think doctrine would start the process from scratch).
Terry Caliendo
Terry Caliendo
Read Full Comment
... that you can rename entity's property, i.e. rename column in DB. But if you blindly run doctrine:schema:update - Doctrine will just add a new column and drop existent one, i.e. you will lose your data! Probably, It's not ...
Hey Shairyar! Yep, that's exactly right! The Doctrine migrations library keeps a migration_versions table in your database (both locally and on production - basically inside any database where the app is run) that ...
weaverryan
weaverryan
Read Full Comment
... known data set (or perhaps, even empty), copy this to the correct location before the test to have it automatically used. Here are some details: http://stackoverflow.com/questions/23537549/symfony-doctrine-unittests-with ...
weaverryan
weaverryan
Read Full Comment
... uses Doctrine (and external tool to do that). So, you can build anything in Symfony, or PHP, or any other language. But, if you think that Symfony might offer you some partially-built solution for your problem space, it ...
weaverryan
weaverryan
Read Full Comment
... something like /** * @ORM\ManyToOne(targetEntity="AppBundle\Entity\User") * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $user; Btw. I recall in the doctrine relationship tutorial, you said ...
... problem or it's due to a big data you're trying to return. Also, you may want to use the Doctrine cache in the doctrine.yaml config. Or you can even use HTTP cache in this case to speed up further hits of this endpoint ...
... Metadata Classes to process." My EntityClass looks like this: ``` namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="blog_posts") */ class Post { /** * @ORM ...
... > [critical] Uncaught PHP Exception Doctrine\Persistence\Mapping\MappingException: "The class 'AppEntityUserProxy' was not found in the chain configured namespaces App\Entity" at MappingException.php line 26
... doctrine/orm to 2.18, because apparently 3.00 cant handle ManyToMany Relationsships anymore), BUT I always get a white screen! Apparently, react does something, if I inspect my element, this is what it looks like ...
... for example updatedAt coming from an doctrine event. b) in the processor where you set the id of the generated entity back to the dto. That works but there have to be some sort of callback/hook mechanism for a generic ...
Peter-Hoehne
Peter-Hoehne
Read Full Comment
... { "require": { "silex/silex": "~1.0", "symfony/twig-bridge": "~2.1", "symfony/security": "~2.4", "doctrine/dbal": "^2.5.4", "monolog/monolog": "~1.7.0", "symfony ...
叶朱丽
叶朱丽
Read Full Comment
... > Symfony\Bridge\Doctrine\Form\ChoiceList\IdReader::getIdValue(): Argument #1 ($object) must be of type ?object, int given, but if the second parameter of createForm is like this: ``` $form = $this->createForm ...
Nataniel-Z
Nataniel-Z
Read Full Comment
... the doctrine replica setup since we have situations where we read and write to the database in quick succession. Too quick for the databases to sync, and we were looking for a solution for this issue without refactoring ...
... >getUser(); // fetch projects $user->addProjects($projects); // NOT a Doctrine relation, just a list of entities } ``` 2) In my QueryExtension, I get the User from the Token and can simply `where project in ...
Sebastian-K
Sebastian-K
Read Full Comment
... overkill to do something like this, and so it's recommended to use Doctrine Criteria that we will show in the next chapter :) And thanks to them, you can move this logic out from entity class to the repository class so ...
... ("EDIT", object)', ), ``` In this situation, the `object` is actually a "collection" - it's an `array` or maybe a Doctrine `Collection` object, I can't actually remember. The point is: it's not a single object. And ...
weaverryan
weaverryan
Read Full Comment