2725 search results for Doctrine

33 lines | src/ApiResource/UserApi.php
// ... lines 1 - 4
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
// ... line 6
use ApiPlatform\Metadata\ApiFilter;
// ... lines 8 - 16
#[ApiFilter(SearchFilter::class, properties: [
'username' => 'partial',
])]
class UserApi
{
// ... lines 22 - 31
}
See Code Block in Script
16 lines | src/ApiResource/UserApi.php
// ... lines 1 - 4
use ApiPlatform\Doctrine\Orm\State\CollectionProvider;
// ... lines 6 - 7
#[ApiResource(
shortName: 'User',
provider: CollectionProvider::class,
)]
class UserApi
{
public ?int $id = null;
}
See Code Block in Script
41 lines | src/State/DragonTreasureStateProvider.php
// ... lines 1 - 4
use ApiPlatform\Doctrine\Orm\State\CollectionProvider;
// ... lines 6 - 13
class DragonTreasureStateProvider implements ProviderInterface
{
public function __construct(
// ... line 17
#[Autowire(service: CollectionProvider::class)] private ProviderInterface $collectionProvider,
// ... line 19
)
{
}
// ... lines 23 - 39
}
See Code Block in Script
168 lines | src/Entity/DragonTreasure.php
// ... lines 1 - 5
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
// ... lines 7 - 39
class DragonTreasure
{
// ... lines 42 - 48
#[ApiFilter(SearchFilter::class, strategy: 'partial')]
private ?string $name = null;
// ... lines 51 - 166
}
See Code Block in Script
72 lines | src/Repository/VinylMixRepository.php
// ... lines 1 - 6
use Doctrine\ORM\QueryBuilder;
// ... lines 8 - 17
class VinylMixRepository extends ServiceEntityRepository
{
// ... lines 20 - 42
public function createOrderedByVotesQueryBuilder(string $genre = null): QueryBuilder
{
// ... lines 45 - 51
return $queryBuilder;
}
// ... lines 54 - 70
}
See Code Block in Script
54 lines | src/Controller/VinylController.php
// ... lines 1 - 6
use Doctrine\ORM\EntityManagerInterface;
// ... lines 8 - 12
class VinylController extends AbstractController
{
// ... lines 15 - 39
public function browse(EntityManagerInterface $entityManager, string $slug = null): Response
{
// ... lines 42 - 51
}
}
See Code Block in Script
33 lines | src/Controller/MixController.php
// ... lines 1 - 5
use Doctrine\ORM\EntityManagerInterface;
// ... lines 7 - 10
class MixController extends AbstractController
{
// ... line 13
public function new(EntityManagerInterface $entityManager): Response
{
// ... lines 16 - 22
$entityManager->persist($mix);
$entityManager->flush();
// ... lines 25 - 30
}
}
See Code Block in Script
90 lines | src/Controller/RegistrationController.php
// ... lines 1 - 7
use Doctrine\ORM\EntityManagerInterface;
// ... lines 9 - 16
class RegistrationController extends AbstractController
{
// ... line 19
public function register(Request $request, UserPasswordHasherInterface $userPasswordHasher, VerifyEmailHelperInterface $verifyEmailHelper, EntityManagerInterface $entityManager): Response
{
// ... lines 22 - 56
}
// ... lines 58 - 88
}
See Code Block in Script
89 lines | src/Controller/RegistrationController.php
// ... lines 1 - 7
use Doctrine\ORM\EntityManagerInterface;
// ... lines 9 - 16
class RegistrationController extends AbstractController
{
// ... lines 19 - 61
public function verifyUserEmail(Request $request, VerifyEmailHelperInterface $verifyEmailHelper, UserRepository $userRepository, EntityManagerInterface $entityManager): Response
{
// ... lines 64 - 86
}
}
See Code Block in Script
... - Root composer.json requires php ^7.1.3 but your php version (8.3.2) does not satisfy that requirement. Problem 2 - doctrine/annotations is locked to version 1.10.1 and an update of this package was not ...
... iconv": "*", "antishov/doctrine-extensions-bundle": "^1.4", "aws/aws-sdk-php": "^3.87", "composer/package-versions-deprecated": "^1.11", "doctrine/annotations": "^1.0", "doctrine ...
... /serializer-basics and if you want to see more, you can check this other chapter for advanced usage of it https://knpuniversity.com/screencast/symfony-rest3/custom-serialization-field If you want to learn more about Doctrine ...
MolloKhan
MolloKhan
Read Full Comment
Hi, when i try to install the doctrine-fixture-bundle i get an error about permission denied: hash_file(C:/Users/xxx/AppData/Local/Composer/repo/https---packagist.org/provider-symfony$security-acl.json): fa iled to ...
Dino2014 D.
Dino2014 D.
Read Full Comment
... (1.9.1): Loading from cache - but now I get [Symfony\\Component\\Config\\Exception\\FileLoaderLoadException] \n Class Doctrine\\Bundle\\FixturesBundle\\Fixture not found in /var/www/project/ \n ...
... Hello, I'm dealing with some issues while trying to run the $ ./bin/console doctrine:database:create command. The error I keep getting is: [Doctrine\DBAL\Exception\ConnectionException] An exception occured in ...
Hmm, you know, I'm not sure :). But I would try it! Remove the `$id` (the normal one that Doctrine adds), then add a property for your varchar one that exists, and give it @ORM\Column and @ORM\Id, but don't give it @ORM ...
weaverryan
weaverryan
Read Full Comment
... "swiftmailer", found "framework", "security", "twig", "monolog", "doctrine", "sensio_framework_extra", "knp_markdown", "doctrine_cache", "doctrine_migrations", "debug", "web_profiler", "sensio_distribution", "doctrine_fixtures ...
... query, the only problem is that Doctrine is executing double Left Join 1 to Users and 1 to Event_User Table. I guess is because Event entity has 2 different relationships (users and event_user) Is there any form to specify Doctrine to only add one Left Join ? Thanks for your time.
MolloKhan
MolloKhan
Read Full Comment
Sorry, im not explaining it well. I'm using Doctrine´s ORM but i don´t need to fill a select box with number's from another Entity, i just need to display 3 input´s (Area Code - Country code - Phone Number) that will ...
... want to dive deeper http://symfony.com/doc/current/reference/configuration/doctrine.html#custom-mapping-entities-in-a-bundle For your case, you will have to do something like this: ``` // config.yml doctrine: orm ...
MolloKhan
MolloKhan
Read Full Comment