2725 search results for Doctrine

I use MySQL Ver 14.14 Distrib 5.7.16, for Linux (x86_64) using EditLine wrapper and doctrine/dbal v2.5.5. Cheers. ...
If anyone has problems with composer install, because of doctrines ArrayCache -> set "doctrine/orm" to "2.8.5" or less in composer.json ...
... Hi, there's any news about the next Doctrine tutorial? Thanks a lot Weave Ryan for those amazing series (y).
Hey excentrist! I'm shooting for January - I definitely want to get the Doctrine relations tutorial out! Cheers! ...
weaverryan
weaverryan
Read Full Comment
Hey Remy, I replied with my thoughts about this difference here: https://symfonycasts.com/screencast/symfony-doctrine/timestampable#comment-28049 Cheers! ...
Offtopic: When I do 'symfony console make:migration' it says: This behaviour is (currently) not supported by Doctrine 2. ...
Oh, I think you only have to update the "doctrine/data-fixtures" library and it should do the trick ...
MolloKhan
MolloKhan
Read Full Comment
Do you have a doctrine listener or a datapersister where you do somthing like: `$entityManager->detach($entity);` ? ...
hi , there are framework with creates entities from web api external ? How does doctrine do with mapping databases to entities :) ...
Gustavo C.
Gustavo C.
Read Full Comment
Hey Gballocc7 Doctrine is expecting an entity object instead of an ID. Do that change and try again :) Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
check this tutorial and see why this all got sooooo confusing ... https://symfonycasts.com/screencast/doctrine-relations/awesome-random-fixtures ...
Hello guys, do you also get the deprecation log message "User Deprecated: Doctrine\Common\ClassLoader is deprecated." ? Cheers ...
One of my services (event_listener.controller) has a dependency '@doctrine'. How can I get this service available in my tests? ...
Lucas Baldassari
Lucas Baldassari
Read Full Comment
// ... lines 1 - 5
use Doctrine\ORM\EntityManagerInterface;
// ... lines 7 - 9
class ValidIsPublishedValidator extends ConstraintValidator
{
private $entityManager;
public function __construct(EntityManagerInterface $entityManager)
{
$this->entityManager = $entityManager;
}
// ... lines 18 - 40
}
See Code Block in Script
// ... lines 1 - 6
use Doctrine\ORM\EntityManagerInterface;
class CheeseListingDataPersister implements DataPersisterInterface
{
// ... line 11
private $entityManager;
public function __construct(DataPersisterInterface $decoratedDataPersister, EntityManagerInterface $entityManager)
{
// ... line 16
$this->entityManager = $entityManager;
}
// ... lines 19 - 42
}
See Code Block in Script
93 lines | src/Controller/QuestionController.php
// ... lines 1 - 6
use Doctrine\ORM\EntityManagerInterface;
// ... lines 8 - 12
class QuestionController extends AbstractController
{
// ... lines 15 - 35
public function new(EntityManagerInterface $entityManager)
{
// ... lines 38 - 57
$entityManager->persist($question);
$entityManager->flush();
// ... lines 60 - 65
}
// ... lines 67 - 91
}
See Code Block in Script
35 lines | src/DataPersister/UserDataPersister.php
// ... lines 1 - 6
use Doctrine\ORM\EntityManagerInterface;
// ... line 8
class UserDataPersister implements DataPersisterInterface
{
private $entityManager;
public function __construct(EntityManagerInterface $entityManager)
{
$this->entityManager = $entityManager;
}
// ... lines 17 - 33
}
See Code Block in Script
142 lines | src/Entity/User.php
// ... lines 1 - 6
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
// ... lines 8 - 11
/**
// ... lines 13 - 16
* @UniqueEntity(fields={"username"})
* @UniqueEntity(fields={"email"})
// ... line 19
*/
class User implements UserInterface
// ... lines 22 - 142
See Code Block in Script
// ... lines 1 - 4
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
// ... lines 6 - 7
/**
* @UniqueEntity(
* fields={"email"},
* message="I think you're already registered!"
* )
*/
class UserRegistrationFormModel
// ... lines 15 - 33
See Code Block in Script
255 lines | src/Entity/User.php
// ... lines 1 - 7
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
// ... lines 9 - 12
/**
// ... line 14
* @UniqueEntity(
* fields={"email"},
* message="I think you're already registered!"
* )
*/
class User implements UserInterface
// ... lines 21 - 255
See Code Block in Script