2725 search results for Doctrine

Having a small problem with "doctrine:generate:entities" when following along with my own project: http://windupbear.blogspot.com/2016/01/symfony2-and-doctrine-issues.html ...
Jon Chapman
Jon Chapman
Read Full Comment
Is there a way to see the full sql with parametres of doctrine query in command(ContainerAwareCommand), something like queries in profiler ? ...
... Hi, I'm receiving `"No transport supports the given DSN "doctrine://default""` error after setting up my handler and setting the .env key. Any ideas?
danielchadwick
danielchadwick
Read Full Comment
... Great, let's follow the second part of your comment in another thread to avoid duplications: https://symfonycasts.com/screencast/symfony-doctrine/create-entity#comment-4535488361 Cheers!
... victor, I've already rewritten my fixtures for standard Doctrine Fixtures. It wasn't as hard as I thought it would) Thanks for your help!
Uh, oh. wrong thread. It belongs to scripts bellow the video https://symfonycasts.com/screencast/doctrine-relations/awesome-random-fixtures#dependentfixtureinterface Sorry for confusion. ...
Jindrich P.
Jindrich P.
Read Full Comment
As I am watching it, the maker can now create the entire CRUD for Doctrine Entity. Time to say goodbye to CakePHP. ...
Michal S.
Michal S.
Read Full Comment
Hi Ryan, I think that info about ServiceSubscriber resides in https://symfonycasts.com/screencast/symfony-doctrine/service-subscriber not in fundamentals. Cheers :) ...
Expected value of type "AppBundle\Entity\Membre" for association field "AppBundle\Entity\Groupe#$membres", got "Doctrine\Common\Collections\ArrayCollection" instead. any one help me please ...
... I cann't find any information about cascade operation in symfony 4 doctrine tutorial, doest it mean do not use it beacuse it's bad practise or what ? ;)
after entering the Entity shortcut name I get... [Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver: SQLSTATE[HY000] [1049] Unknown database 'symfony' ...
Justice Sommer
Justice Sommer
Read Full Comment
I have 3rd party desktop software but I know how password was hashed so I maped table to doctrine enitity and created CustomAuthenticator. :) ...
It will be great to add a new screencast about Doctrine Criteria to this tutorial. I think they awesome too! :) What do you think, Ryan? ...
Which doctrine annotation should I use if I really wanted to assign a $genusScientist to another $genus instead of completely removing it from the database? Thanks. ...
Hey Chris, Thank you for reporting it! I fixed both broken links in https://github.com/knpuniversity/doctrine-queries/commit/7fb9b5125554ec985718d0bd3b025bd30afd8e6e Cheers! ...
+1. Apparently we have to wait for a Symfony update https://stackoverflow.com/questions/51342512/user-deprecated-doctrine-common-classloader-is-deprecated ...
Trafficmanagertech
Trafficmanagertech
Read Full Comment
I need to create some Doctrine Entities in my bundle, to be used by the external App. How can I add and configure these Entities? ...
Lucas Baldassari
Lucas Baldassari
Read Full Comment
29 lines | src/Repository/AnswerRepository.php
// ... lines 1 - 6
use Doctrine\Common\Collections\Criteria;
// ... lines 8 - 15
class AnswerRepository extends ServiceEntityRepository
{
// ... lines 18 - 22
public static function createApprovedCriteria(): Criteria
{
return Criteria::create()
->andWhere(Criteria::expr()->eq('status', Answer::STATUS_APPROVED));
}
}
See Code Block in Script
188 lines | src/Entity/Question.php
// ... lines 1 - 7
use Doctrine\Common\Collections\Criteria;
// ... lines 9 - 15
class Question
{
// ... lines 18 - 157
public function getApprovedAnswers(): Collection
{
$criteria = Criteria::create()
->andWhere(Criteria::expr()->eq('status', Answer::STATUS_APPROVED));
return $this->answers->matching($criteria);
}
// ... lines 165 - 186
}
See Code Block in Script
188 lines | src/Entity/Question.php
// ... lines 1 - 7
use Doctrine\Common\Collections\Criteria;
// ... lines 9 - 15
class Question
{
// ... lines 18 - 157
public function getApprovedAnswers(): Collection
{
$criteria = Criteria::create()
->andWhere(Criteria::expr()->eq('status', Answer::STATUS_APPROVED));
// ... lines 162 - 163
}
// ... lines 165 - 186
}
See Code Block in Script