|
@@ -3,6 +3,7 @@ declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace App\Entity\Billing;
|
|
namespace App\Entity\Billing;
|
|
|
|
|
|
|
|
|
|
+use ApiPlatform\Core\Annotation\ApiResource;
|
|
|
use App\Entity\Product\EquipmentLoan;
|
|
use App\Entity\Product\EquipmentLoan;
|
|
|
use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
@@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
|
|
|
*/
|
|
*/
|
|
|
#[Auditable]
|
|
#[Auditable]
|
|
|
#[ORM\Entity]
|
|
#[ORM\Entity]
|
|
|
|
|
+// TODO: revoir la sécurité
|
|
|
|
|
+#[ApiResource(
|
|
|
|
|
+ collectionOperations:[
|
|
|
|
|
+ "get"
|
|
|
|
|
+ ],
|
|
|
|
|
+ itemOperations: [
|
|
|
|
|
+ "get"
|
|
|
|
|
+ ]
|
|
|
|
|
+)]
|
|
|
class BillingIntangibleExcludeDate
|
|
class BillingIntangibleExcludeDate
|
|
|
{
|
|
{
|
|
|
#[ORM\Id]
|
|
#[ORM\Id]
|
|
@@ -98,4 +108,4 @@ class BillingIntangibleExcludeDate
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|