commit 7dbca60cd4ddfacb838d45da73c064ba5a8f7419
parent 90daf32bf9a73d0a384b0139609b141a0e8ff519
Author: Felicitus <felicitus@felicitus.org>
Date: Fri, 4 Sep 2015 14:59:20 +0200
Fixed getter/setter names in order to allow DunglasApiBundle to invoke them when serializing the properties
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/PartKeepr/DistributorBundle/Entity/Distributor.php b/src/PartKeepr/DistributorBundle/Entity/Distributor.php
@@ -80,6 +80,7 @@ class Distributor extends BaseEntity
/**
* Holds the SKU lookup URL of the distributor
* @ORM\Column(type="string",nullable=true)
+ * @Groups({"default"})
*
* @var string
*/
@@ -210,7 +211,7 @@ class Distributor extends BaseEntity
*
* @param string $url The URL for this distributor
*/
- public function setURL($url)
+ public function setUrl($url)
{
$this->url = $url;
}
@@ -220,7 +221,7 @@ class Distributor extends BaseEntity
*
* @return string The URL
*/
- public function getURL()
+ public function getUrl()
{
return $this->url;
}
@@ -230,7 +231,7 @@ class Distributor extends BaseEntity
*
* @param string $skuurl The SKU lookup URL for this distributor
*/
- public function setSKUURL($skuurl)
+ public function setSkuurl($skuurl)
{
$this->skuurl = $skuurl;
}
@@ -240,7 +241,7 @@ class Distributor extends BaseEntity
*
* @return string The SKU lookup URL
*/
- public function getSKUURL()
+ public function getSkuurl()
{
return $this->skuurl;
}