Doctrine integration |
Hello! Thanks for your tutorial, it helped me a lot!
For my part, I used Entities present in CI modules (folder App\Modules) for the mapping. (I can provide some code snippets if you are interested) Everything works without problems, however, I was wondering if it was possible to access Doctrine commands on a remote host (OVH for example) for shared servers (in SSH maybe)? Or if we could simply call the commands of Doctrine (update DB schema, ...) without terminal access? Thanks again! EDIT: I ended up figuring out how to do it if someone is interested: PHP Code: <?php Just call these functions to run Doctrine commands directly from a PHP page (without using a terminal). As a reminder, my Entities are not in the CI4 basic Models\Entities folder. I use modules that have the following structure: app\Modules\{module_name}\Entities. Here is my Libraries\Doctrine.php class: PHP Code: <?php So, I do not use a YAML file for mapping but annotations directly in my Entities. Hope this can help someone else! Have a nice day! |
Messages In This Thread |
Doctrine integration - by ScientiFist - 11-16-2019, 08:26 PM
RE: Doctrine integration - by MGatner - 11-17-2019, 04:39 AM
RE: Doctrine integration - by InsiteFX - 11-17-2019, 04:50 AM
RE: Doctrine integration - by ScientiFist - 11-17-2019, 05:58 PM
RE: Doctrine integration - by MGatner - 11-17-2019, 05:10 AM
RE: Doctrine integration - by MGatner - 11-18-2019, 05:31 AM
RE: Doctrine integration - by ScientiFist - 11-18-2019, 10:34 AM
RE: Doctrine integration - by jasonzig - 11-29-2019, 08:20 AM
RE: Doctrine integration - by MGatner - 11-18-2019, 04:24 PM
RE: Doctrine integration - by ScientiFist - 11-26-2019, 06:29 PM
RE: Doctrine integration - by ScientiFist - 11-30-2019, 07:25 AM
RE: Doctrine integration - by MGatner - 12-01-2019, 05:36 AM
RE: Doctrine integration - by troturier - 12-06-2019, 06:28 AM
RE: Doctrine integration - by ScientiFist - 03-17-2020, 07:06 PM
RE: Doctrine integration - by foxbille - 05-10-2024, 11:51 PM
RE: Doctrine integration - by kenjis - 05-11-2024, 02:17 AM
RE: Doctrine integration - by foxbille - 05-11-2024, 05:24 AM
RE: Doctrine integration - by kenjis - 05-13-2024, 06:57 PM
RE: Doctrine integration - by foxbille - 05-18-2024, 09:14 AM
|