Merge branch 'master' into '256-privacy-policy-for-warranty'
# Conflicts: # src/Entity/PrivacyPolicy.php
This commit is contained in:
commit
4bc99df261
2 changed files with 0 additions and 28 deletions
|
|
@ -18,8 +18,6 @@ access_keys:
|
||||||
label: Cancel
|
label: Cancel
|
||||||
- id: warranty.delete
|
- id: warranty.delete
|
||||||
label: Delete
|
label: Delete
|
||||||
- id: warranty.set.privacypolicy
|
|
||||||
label: Set Privacy Policy
|
|
||||||
- id: batterybrand
|
- id: batterybrand
|
||||||
label: Battery Brand Access
|
label: Battery Brand Access
|
||||||
acls:
|
acls:
|
||||||
|
|
|
||||||
|
|
@ -127,13 +127,6 @@ class Warranty
|
||||||
*/
|
*/
|
||||||
protected $flag_activated;
|
protected $flag_activated;
|
||||||
|
|
||||||
// privacy policy
|
|
||||||
/**
|
|
||||||
* @ORM\ManyToOne(targetEntity="PrivacyPolicy", inversedBy="warranties")
|
|
||||||
* @ORM\JoinColumn(name="warranty_privacy_policy", referencedColumnName="id", nullable=true)
|
|
||||||
*/
|
|
||||||
protected $privacy_policy;
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->date_create = new DateTime();
|
$this->date_create = new DateTime();
|
||||||
|
|
@ -373,23 +366,4 @@ class Warranty
|
||||||
{
|
{
|
||||||
return $this->flag_activated;
|
return $this->flag_activated;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasPrivacyPolicy()
|
|
||||||
{
|
|
||||||
if ($this->privacy_policy == null)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setPrivacyPolicy($privacy_policy)
|
|
||||||
{
|
|
||||||
$this->privacy_policy = $privacy_policy;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getPrivacyPolicy()
|
|
||||||
{
|
|
||||||
return $this->privacy_policy;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue