add method for retrieving 39 articles
This commit is contained in:
		| @@ -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()]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user