2726 search results for Doctrine

HI Amine I was able to make it work, with these steps: 1) Create a phpunit.xml with this content: ``` ``` 2) Run `composer require indigophp/doctrine-annotation-autoload` 3) Run `composer dump-autoload` ...
Alright, so the filtering worked as a charm. I believe you may find useful the "Blameable" Doctrine extension, so you can automatically attach the client_id to your records https://github.com/Atlantic18/DoctrineExtensions/blob/v2.4.x/doc/blameable.md Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Nothing yet felipyamorim! It's my fault - this has been a tough one to schedule in! But, I'm hoping to make it the next tutorial, after the one we started releasing today (Symfony and Doctrine). Cheers! ...
weaverryan
weaverryan
Read Full Comment
Thank you! Can you explain how realize this logic. This class it's a service or doctrine entity? And how in this case point count of operations when adding it to product ...
`bind` is a killing-feature, thank you. Meanwhile, are you planning to make a course for MultiLingual usage of Symfony and Doctrine. (not just talking about translations :)) It'd be lovely. Thanks for great work. ...
Yahya A. Erturan
Yahya A. Erturan
Read Full Comment
Hey Trafficmanagertech Usually you don't need Doctrine itself, what you usually need is a repository or the entity manager, but if for some reason you need it, I believe you can inject it directly to a controller's action Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey Nick, What do you mean? Are you talking about migrating legacy app which already has some data to Symfony and Doctrine? Let me know if I understand you right Cheers! ...
Hello Diego, I am confused. @ORM\Table(indexes={@ORM\Index(name="name_idx", columns={"name"})}) So, we do not need to do this because Doctrine will add indexes? Or you speak only about foreign keys? ...
Hmm, interesting, which version of `doctrine-bundle` are you using? Try using 1.6 And make sure you are really running in PHP 7.1, that error is related to PHP 7.0 Cheers ...
MolloKhan
MolloKhan
Read Full Comment
Hey James, Looks like you need to call persist() on Category entity which you add to collection. Don't forget that Doctrine requires calling persist() on new entities before calling flush(). Cheers! ...
Hey Nina, Have you imported namespace "use Doctrine\ORM\Mapping as ORM;" before GenusScientist class declaration? If so, could you show us your GenusScientist::$genus property definition with its annotations? Cheers! ...
Love those tutorials! I left services for last because I believe Doctrine, Forms and Authentication are already a super huge bunch of information to create a nice complete application. :) ...
Fabrizio S.
Fabrizio S.
Read Full Comment
Hey Cesar, The main advantage of ORM is that you operate objects and ORM lib like Doctrine do a lot of work for you. But yeah, it depends on your aims. Cheers! ...
Here is my first trouble :) I have Symfony 3.2.8 version. Everytime i refresh the page it is loading over 1000ms and it is not caching. there is no file under var/cache/doctrine/cache/file_system? ...
Hey guys, Here's an example of using FormEvents - check it out in the "Doctrine Collections: ManyToMany, Forms & other Complex Relations" tutorial: https://knpuniversity.com/screencast/collections/form-events-readonly-embedded-field ping Bryan Humphreys Bryan Humphreys Bryan Humphreys Cheers! ...
... doctrine:cache doctrine:generate doctrine:mapping doctrine:database doctrine
Pawel End
Pawel End
Read Full Comment
Hey Caim, Agree, it should work with expressions as well, but anyway this one is easier to read but also should work well: https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3213019941 Cheers! ...
... Hi, i'm running symfony 3.2.4 with doctrine/orm 2.5.6 And this doesn't seems to work.. I get null for OneToMany field when $em->getRepository(TestEntity::class)->findAll(); It seems that the __construct() is not called at all.
Yehuda Am-Baruch
Yehuda Am-Baruch
Read Full Comment
Nice job Thomas L.! That is a gotcha of reverse engineering! As soon as Doctrine finds *one* metadata format, it just stops looking for the other formats. Good debugging! ...
weaverryan
weaverryan
Read Full Comment
After some research I found the solution. Don't know why but I had to add repository-class="AcmeBundle\Repository\AcmeRepository" within the -Key to the Resources\doctrine xml-File. Why? ...
Thomas L.
Thomas L.
Read Full Comment