Hello.
In my database i have the same table for diffrent product - i mean the structure of table is the same but i have diffrent name for each table.
The tables are create by website user.
Is it possible in Doctrine ...
... /doctrine-orm/en/latest/reference/events.html#entity-listeners
Would be nice to hear a bit of em in your videos or in a post. I'm finding it dificult to implement to my project.
Thanks for your time.
... Sorry, "Dependancy" was a typo. Here is the class:
```
namespace AppBundle\Service;
use Doctrine\ORM\EntityManager;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use Symfony\Component ...
friendsofsymfony/user-bundle (v2.0) is not compatible yet with SF4.
After doing the way that Ryan suggest for doctrine extension bundle it's working.
Also I noticed that it's Ryan was a major players into refactoring ...
... "Doctrine\DBAL\Types\DateType"
500 Internal Server Error - InvalidArgumentException
I have checked and everything seems exactly like in your tut, the declaration is:
->add('firstDiscoveredAt', DateType::class, [
'widget' => 'single_text',
])Could you do a bit of light here?
Thanks!
Hey Cesar
Is totally fine to do that, actually that's the way I like to do it, but you can even use a doctrine extension "TimeStampable" to achieve the same result (The good thing about this extension is that it can ...
Hello. I have surrendered to the Doctrine powers because of this tutorial. One question, if I need to set a default date time value, do I need to create a construct function inside of the Entity? I need it to know at ...
...
```
// config.yml
doctrine:
dbal:
driver: pdo_mysql
host: 127.0.0.1
dbname: your_db_name
user: your_db_user_name
password: your_db_user_password
charset: UTF8 # or anyother you need
```
This is a very basic configuration but good enough to get you started
Cheers!
Hello,
I did this for practice and got :
Cannot autowire service "app.doctrine.hash_password_listener": argument "$passwordEncoder" of method "App\Doctrine\HashPasswordListener::__construct()" references class "Symfony ...
... ) AutowiringFailedException
Cannot autowire service "AppBundle\Service\MarkdownTransformer": argument "$cache" of method "__construct()" references interface "Doctrine\Common\Cache\Cache" but no such service exists. You should ...
I did remove the the whole database and recreated it. I have not changed anything about Doctrine settings. I wonder if this is related to the version of Symfony, since I am using the 3.3
if I add```
$builder->add('name ...
Hey Juan Nicolás
An entity in Doctrine represents a record in a table for your DB, so that's why you see a lot of DB metadata, such as relationships, field types, etc. Most of the time they have pure data, but you can ...
... information about it here: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/working-with-associations.html#orphan-removal
Or even better, watch Ryan explaining it: https://knpuniversity.com/screencast/collections/collection-delete-orphan-removal
Cheers!
... remove everything in the cache folder with the next command:
```
rm -rf var/cache/*
```
Btw, do you use any bytecode cache engines for doctrine annotations, like OPCache or APCu? If so, you need manually clear that cache as well.
Cheers!
Hey Fenring,
I personally don't use AliceBundle in my unit tests, could you look at this thread, maybe this will help to fix your problem: https://knpuniversity.com/screencast/symfony-doctrine/fixtures-alice#comment ...
Hey Jian!
When you haven't hydrated a relationship of an object (in this case User - StudiedGenuses), Doctrine creates and sets a "Proxy" into that property via "Reflection" by default, so when you use that property ...
Hi. I want to tell you that this track explains Symphony in a really friendly way.
However, after this Doctrine course, I prefer to use plane PHP for connecting to my database (keep things simpler). But I wonder if I ...
... AUTO_INCREMENT NOT N....' 'SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'genus' already exists...'
'[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42S01]: Base table or view alrea
dy exists: 1050 Table ...
Hey Claire!
In this course we don't go through deleting a Genus, but there is other tutorial where we cover a lot more about working with entities "Doctrine Collections", it is a bit more advance topic but you can find ...
Hey Julien!
Indeed there are many ways of doing it, but I preffer using a setter because its more explicit in what are you doing.
Also there is a Doctrine Extension that might help you "Blameable"
it works like magic ...
2725
Doctrine
Filter Results