Updated presentation Materials serializers
Added class_name to presentation materials serializers Change-Id: Ibd27a9c8122740db3ea9387a733b36b5b85f0735
This commit is contained in:
parent
aa83b4ab61
commit
0ba31513ae
|
@ -19,8 +19,8 @@ use Libs\ModelSerializers\AbstractSerializer;
|
||||||
class SilverStripeSerializer extends AbstractSerializer
|
class SilverStripeSerializer extends AbstractSerializer
|
||||||
{
|
{
|
||||||
protected static $array_mappings = [
|
protected static $array_mappings = [
|
||||||
'Id' => 'id:json_int',
|
'Id' => 'id:json_int',
|
||||||
'CreatedUTC' => 'created:datetime_epoch',
|
'CreatedUTC' => 'created:datetime_epoch',
|
||||||
'LastEditedUTC' => 'last_edited:datetime_epoch',
|
'LastEditedUTC' => 'last_edited:datetime_epoch',
|
||||||
];
|
];
|
||||||
}
|
}
|
|
@ -20,13 +20,13 @@
|
||||||
class PresentationMaterialSerializer extends SilverStripeSerializer
|
class PresentationMaterialSerializer extends SilverStripeSerializer
|
||||||
{
|
{
|
||||||
|
|
||||||
protected static $array_mappings = array
|
protected static $array_mappings = [
|
||||||
(
|
|
||||||
'Name' => 'name:json_text',
|
'Name' => 'name:json_text',
|
||||||
'Description' => 'description:json_text',
|
'Description' => 'description:json_text',
|
||||||
'DisplayOnSite' => 'display_on_site:json_boolean',
|
'DisplayOnSite' => 'display_on_site:json_boolean',
|
||||||
'Featured' => 'featured:json_boolean',
|
'Featured' => 'featured:json_boolean',
|
||||||
'Order' => 'order:json_int',
|
'Order' => 'order:json_int',
|
||||||
'PresentationId' => 'presentation_id:json_int',
|
'PresentationId' => 'presentation_id:json_int',
|
||||||
);
|
'ClassName' => 'class_name:json_text',
|
||||||
|
];
|
||||||
}
|
}
|
|
@ -12,7 +12,6 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
**/
|
**/
|
||||||
use Doctrine\ORM\Mapping AS ORM;
|
use Doctrine\ORM\Mapping AS ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PresentationLink
|
* Class PresentationLink
|
||||||
* @ORM\Entity
|
* @ORM\Entity
|
||||||
|
|
Loading…
Reference in New Issue