Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-mlc
kohinos
Commits
e31477ea
Commit
e31477ea
authored
Nov 04, 2020
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug creation prestataires avec contact depuis admin
parent
e8a2e43d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
Comptoir.php
src/Entity/Comptoir.php
+4
-1
Prestataire.php
src/Entity/Prestataire.php
+9
-6
No files found.
src/Entity/Comptoir.php
View file @
e31477ea
...
...
@@ -189,13 +189,16 @@ class Comptoir
$this
->
contacts
=
$contacts
;
return
$this
;
}
/**
* @param ContactComptoir $contact
* @return $this
*/
public
function
addContact
(
ContactComptoir
$contact
)
:
self
{
if
(
is_null
(
$this
->
contacts
))
{
$this
->
contacts
=
new
ArrayCollection
();
}
if
(
!
$this
->
contacts
->
contains
(
$contact
))
{
$this
->
contacts
[]
=
$contact
;
$contact
->
setComptoir
(
$this
);
...
...
src/Entity/Prestataire.php
View file @
e31477ea
...
...
@@ -203,7 +203,7 @@ class Prestataire
* @Groups({"read", "write"})
*/
private
$groupeprestataires
;
/**
* EtatPrestataire $etats
* @var ArrayCollection|EtatPrestataire[]
...
...
@@ -421,7 +421,7 @@ class Prestataire
$this
->
geolocs
=
$geolocs
;
return
$this
;
}
/**
* @param GeolocPrestataire $geoloc
* @return $this
...
...
@@ -466,13 +466,16 @@ class Prestataire
$this
->
contacts
=
$contacts
;
return
$this
;
}
/**
* @param ContactPrestataire $contact
* @return $this
*/
public
function
addContact
(
ContactPrestataire
$contact
)
:
self
{
if
(
is_null
(
$this
->
contacts
))
{
$this
->
contacts
=
new
ArrayCollection
();
}
if
(
!
$this
->
contacts
->
contains
(
$contact
))
{
$this
->
contacts
[]
=
$contact
;
$contact
->
setPrestataire
(
$this
);
...
...
@@ -500,7 +503,7 @@ class Prestataire
{
return
$this
->
users
;
}
public
function
getUsersString
()
{
return
join
(
' - '
,
array_map
(
function
(
$user
)
{
...
...
@@ -673,7 +676,7 @@ class Prestataire
{
return
$this
->
etats
;
}
public
function
getEtatsString
()
:
?
string
{
return
join
(
' - '
,
array_map
(
function
(
$etat
)
{
...
...
@@ -763,7 +766,7 @@ class Prestataire
{
return
$this
->
tauxreconversion
;
}
/**
* Set tauxreconversion
* @return $this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment