Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17997

Re: Symfony 4 - how to get to the documentation of setting up event subscribers?

From Marek S <precz@spamowi.com>
Newsgroups comp.lang.php
Subject Re: Symfony 4 - how to get to the documentation of setting up event subscribers?
Date 2019-06-15 22:57 +0200
Organization ATMAN - ATM S.A.
Message-ID <qe3m3j$str$1@node2.news.atman.pl> (permalink)
References (1 earlier) <gmev4hFi9soU1@mid.individual.net> <qdu78n$37q$1@node2.news.atman.pl> <gmhe05F45bsU1@mid.individual.net> <qe0p50$bqt$1@node2.news.atman.pl> <gmkj15Fp3lrU1@mid.individual.net>

Show all headers | View raw


W dniu 2019-06-15 o 18:00, Arno Welzel pisze:

>> 5. The migrations are created via console (doctrine:migrations:migrate)
> 
> doctrine:migrations:migrate does not *create* a migration but *execute*
> them as needed.

I meant make:migration

> 
>> Executing such a code will result exception saying that existing schema
>> can not be created.
> 
> And why is the code there at all?

Good question, which is asked for years.
https://github.com/doctrine/dbal/issues/1110

> 
> Why should a *downgrade* migration create a schema? 

Only Doctrine's developer knows.

> I would just delete
> these statements. It's totally fine to modify migrations if required.

Ok, I assumed that migrations should not be changed manually. But if it 
is corrrect approach, then I will follow this way. If they have to be 
corrected anyway, can I use them to build not supported by Doctrine 
functionality such as triggers?



-- 
Regards,
Marek

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-12 20:09 +0200
  Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-13 14:50 +0200
    Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-13 21:13 +0200
      Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-14 13:16 +0200
        Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-14 20:30 +0200
          Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-15 18:00 +0200
            Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-15 22:57 +0200
              Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-16 09:31 +0200
                Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-16 14:29 +0200
                Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-17 00:18 +0200

csiph-web