/**
* @deprecated in 5.6, will be private in 5.8
*
* Return number of free serials for given esdId
*
* @param int $esdId
*
* @return int
*/
public function getFreeSerialCount($esdId) { return (int) $this->
getRepository()->
getFreeSerialsCountByEsdQuery($esdId)->
getSingleScalarResult();
} /**
* Event listener function of the product backend module.
* Creates new serial numbers
*/
public function saveSerialsAction() { $esdId =
$this->
Request()->
getParam('esdId'
);
$esd =
$this->
get('models'
)->
getRepository(Esd::
class)->
find($esdId);