Library/Bullhorn/FastRest/Api/Controllers/Base.php
protected function lookUpEntity($entityId) {
        $entity = $this->generateEntity();
        $entityInstance = $entity->findFirst($entityId);
        if($entityInstance === false) {
            throw new Exception("Invalid Entity Id: Entity not found.", 404);
        }
        return $entityInstance;
    }
protected function lookUpEntity($entityId) {
        $entity = $this->generateEntity();
        $entityInstance = $entity->findFirst($entityId);
        if($entityInstance === false) {
            throw new Exception("Invalid Entity Id: Entity not found.", 404);
        }
        return $entityInstance;
    }
protected function lookUpEntity ( $ entityId ) { $ entity = $ this -> generateEntity ( ) ; $ entityInstance = $ entity -> findFirst ( $ entityId ) ; if ( $ entityInstance === false ) { throw new Exception ( "Invalid Entity Id: Entity not found." , 404 ) ; } return $ entityInstance ; }
This looks up an entity based off of the entity id

@param int $entityId

@throws Exception - If unable to find the entity, return a 404 to the user.

@return ModelInterface
This looks up an entity based off of the entity id