Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: Symfony 4/ / Doctrine - how to utilize third party entities? Date: Sat, 15 Jun 2019 18:02:23 +0200 Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net M34/Q17R2RTMOdPyKIkzhA+WbLK1O5llUdopTiEyh3W69ApqXf Cancel-Lock: sha1:6DlS5xqd1wlPtRLbpjLqoLRdQW0= Openpgp: preference=signencrypt In-Reply-To: Xref: csiph.com comp.lang.php:17996 Marek S: > Hi all, > > Assumptions: > 1. PostgerSQL > 2. Namespace "public" designed for Symfony / Doctrine entities. > 3. Other namespaces contain third party tables/other objects which > Doctrine will use but never change (creating/altering tables is not > allowed but reading/writing is). > > I would like to create entities via make:entity for (only) public > schema. I also would like to create manually entities/repositories for > third party tables They should be excluded from migrations : > > doctrine:migrations:generate Usually it's easier to use doctrine:migrations:diff if you already have a migrated database schema and just want to generate the SQL statements to create the new entities. And BTW: this is nothing to do with PHP itself - maybe you find more answers in dedidacted Symfony forums. -- Arno Welzel https://arnowelzel.de