some progress in fast sell
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 36 KiB |
|
@ -131,9 +131,22 @@ class PersonsController extends AbstractController
|
||||||
{
|
{
|
||||||
if(!$access->hasRole('person'))
|
if(!$access->hasRole('person'))
|
||||||
throw $this->createAccessDeniedException();
|
throw $this->createAccessDeniedException();
|
||||||
$persons = $entityManager->getRepository(Person::class)->findBy([
|
$params = [];
|
||||||
'bid'=>$request->headers->get('activeBid')
|
if ($content = $request->getContent()) {
|
||||||
]);
|
$params = json_decode($content, true);
|
||||||
|
}
|
||||||
|
if(array_key_exists('speedAccess',$params)){
|
||||||
|
$persons = $entityManager->getRepository(Person::class)->findBy([
|
||||||
|
'bid'=>$request->headers->get('activeBid'),
|
||||||
|
'speedAccess'=>true
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$persons = $entityManager->getRepository(Person::class)->findBy([
|
||||||
|
'bid'=>$request->headers->get('activeBid')
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
$response = $provider->ArrayEntity2Array($persons,0);
|
$response = $provider->ArrayEntity2Array($persons,0);
|
||||||
foreach ($persons as $key =>$person){
|
foreach ($persons as $key =>$person){
|
||||||
$rows = $entityManager->getRepository(HesabdariRow::class)->findBy([
|
$rows = $entityManager->getRepository(HesabdariRow::class)->findBy([
|
||||||
|
|