Archives de
Category: Symfony2

Relations Symfony2 et YML

Relations Symfony2 et YML

Dans Individu.orm.yml : manyToOne: ville: targetEntity: XXX\NomDuBundleRelation\Entity\Ville Générer l’entity : php app/console doctrine:generate:entities NomDuBundle Pour voir si tout est OK : php app/console doctrine:schema:update –dump-sql

Symfony 2 : mise en place d’un projet

Symfony 2 : mise en place d’un projet

Configuration du Virtual Host : <VirtualHost www.xxxx.com:80>     ServerName www.xxxx.com     ServerAlias www.xxxx.com     DocumentRoot /data/webs/www.xxxx.com/web     <Directory /data/webs/www.xxxx.com/web>         # enable the .htaccess rewrites         AllowOverride All         Order allow,deny         Allow from All     </Directory>     ErrorLog path     CustomLog path combined </VirtualHost> On se place dans le répertoire /data/webs/www.xxxx.com php et on lance l’installation de Composer : curl -s https://getcomposer.org/installer | php Puis(en choisissant la bonne version que l’on souhaite installer !) php composer.phar create-project symfony/framework-standard-edition path/…

Lire la suite Lire la suite