Commit dfad7dff authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

AJout du tri sur l'id pour tous les services car les résultats sont désormais paginés

parent d923345c
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class ActeurResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class DoctorantResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class EcoleDoctoraleResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class EtablissementResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class IndividuResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class RoleResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class SourceResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class StructureResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class TheseResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'directeion' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class UniteRechercheResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
......@@ -5,4 +5,14 @@ use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class VariableResource extends DoctrineResource
{
public function fetchAll($data = [])
{
$data['order-by'] = [
'type' => 'field',
'field' => 'id',
'direction' => 'asc',
];
return parent::fetchAll($data);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment