Commit dee719dc authored by Mat's avatar Mat

génère une entité User minimale

* quelques configs
* php bin/console doctrine:generate:entity
  -->  TechnoBundle:User
parent d644a8a0
......@@ -33,8 +33,8 @@ framework:
assets: ~
php_errors:
log: true
# templating:
# engines: [ twig ]
templating:
engines: [ twig ]
# Twig Configuration
twig:
......@@ -77,3 +77,12 @@ fos_js_routing:
- api_owner_*
- api_image_*
- api_membre_*
# FOSUserBundle Configuration
fos_user:
db_driver: orm
firewall_name: main
user_class: TechnoBundle\Entity\User
from_email:
address: mat@collectifs.net
sender_name: admin
<?php
namespace TechnoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table(name="user")
* @ORM\Entity(repositoryClass="TechnoBundle\Repository\UserRepository")
*/
class User
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
}
<?php
namespace TechnoBundle\Repository;
/**
* UserRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class UserRepository extends \Doctrine\ORM\EntityRepository
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment