fix schema products
This commit is contained in:
parent
45b37390a9
commit
4caf290064
@ -2,6 +2,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="google-signin-client_id"
|
||||
content="938689189350-frtrg93bnva4b3p7c1al880mi3ts5i35.apps.googleusercontent.com">
|
||||
<title>{% block title %}Fiche de compte dynamique{% endblock %}</title>
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('build/app.css') }}">
|
||||
@ -35,7 +37,7 @@
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function () {
|
||||
var u = "//piwik.cipherbliss.com/";
|
||||
var u = "https://piwik.cipherbliss.com/";
|
||||
_paq.push(['setTrackerUrl', u + 'piwik.php']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
|
||||
|
@ -55,7 +55,6 @@
|
||||
<img src="https://en.gravatar.com/userimage/53061325/811d383aa2ebb8d2d83baab7da5f4a7b.jpeg"
|
||||
alt="avatar Mastodon" width="50" height="50"> @tykayn@mamot.fr
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -286,4 +286,92 @@ class Festival {
|
||||
public function getChiffreAffaire() {
|
||||
return $this->chiffreAffaire;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisInscription.
|
||||
*
|
||||
* @param string|null $fraisInscription
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisInscription( $fraisInscription = null ) {
|
||||
$this->fraisInscription = $fraisInscription;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisInscription.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisInscription() {
|
||||
return $this->fraisInscription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisHebergement.
|
||||
*
|
||||
* @param string|null $fraisHebergement
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisHebergement( $fraisHebergement = null ) {
|
||||
$this->fraisHebergement = $fraisHebergement;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisHebergement.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisHebergement() {
|
||||
return $this->fraisHebergement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisTransport.
|
||||
*
|
||||
* @param string|null $fraisTransport
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisTransport( $fraisTransport = null ) {
|
||||
$this->fraisTransport = $fraisTransport;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisTransport.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisTransport() {
|
||||
return $this->fraisTransport;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisRepas.
|
||||
*
|
||||
* @param string|null $fraisRepas
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisRepas( $fraisRepas = null ) {
|
||||
$this->fraisRepas = $fraisRepas;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisRepas.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisRepas() {
|
||||
return $this->fraisRepas;
|
||||
}
|
||||
}
|
||||
|
@ -42,6 +42,10 @@ class Product {
|
||||
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\User", inversedBy="products")
|
||||
*/
|
||||
private $user;
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="AppBundle\Entity\ProductSold", mappedBy="product")
|
||||
*/
|
||||
private $productsSold;
|
||||
|
||||
use Sellable;
|
||||
use Commentable;
|
||||
@ -165,4 +169,44 @@ class Product {
|
||||
public function getStockCount() {
|
||||
return $this->stockCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->productsSold = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add productsSold.
|
||||
*
|
||||
* @param \AppBundle\Entity\User $productsSold
|
||||
*
|
||||
* @return Product
|
||||
*/
|
||||
public function addProductsSold( \AppBundle\Entity\User $productsSold ) {
|
||||
$this->productsSold[] = $productsSold;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove productsSold.
|
||||
*
|
||||
* @param \AppBundle\Entity\User $productsSold
|
||||
*
|
||||
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
|
||||
*/
|
||||
public function removeProductsSold( \AppBundle\Entity\User $productsSold ) {
|
||||
return $this->productsSold->removeElement( $productsSold );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get productsSold.
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getProductsSold() {
|
||||
return $this->productsSold;
|
||||
}
|
||||
}
|
||||
|
@ -42,6 +42,10 @@ class Product {
|
||||
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\User", inversedBy="products")
|
||||
*/
|
||||
private $user;
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="AppBundle\Entity\User", mappedBy="product")
|
||||
*/
|
||||
private $productsSold;
|
||||
|
||||
use Sellable;
|
||||
use Commentable;
|
||||
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\User;
|
||||
|
||||
use MsgPhp\User\Entity\User as BaseUser;
|
||||
use MsgPhp\User\UserIdInterface;
|
||||
|
||||
/**
|
||||
* @final
|
||||
*/
|
||||
class User extends BaseUser
|
||||
{
|
||||
private $id;
|
||||
|
||||
public function __construct(UserIdInterface $id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getId(): UserIdInterface
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user