add method for retrieving 39 articles
This commit is contained in:
parent
bdc67942ea
commit
164ed62a48
@ -202,6 +202,15 @@ class ReferenceController extends AbstractController
|
||||
return $r[0];
|
||||
}
|
||||
|
||||
public static function retrieve39a($ref): Reference
|
||||
{
|
||||
$r = self::$emi->getRepository(Reference::class)->findBy(['type' => '39a', 'ndx' => $ref->getNdx()]);
|
||||
if (!$r) {
|
||||
return new Reference();
|
||||
}
|
||||
return $r[0];
|
||||
}
|
||||
|
||||
public static function retrieve1HC($ref): Reference
|
||||
{
|
||||
$r = self::$emi->getRepository(Reference::class)->findBy(['type' => '1hc', 'ndx' => $ref->getNdx()]);
|
||||
|
Loading…
Reference in New Issue
Block a user