public function get_from_id(int $id) {
        $records = $this->get_from_ids([$id]);
        return count($records) ? array_shift($records) : null;
    }
public function get_from_id(int $id) {
        $records = $this->get_from_ids([$id]);
        return count($records) ? array_shift($records) : null;
    }
public function get_from_id ( int $ id ) { $ records = $ this -> get_from_ids ( [ $ id ] ) ; return count ( $ records ) ? array_shift ( $ records ) : null ; }
Get the entity for the given id.

@param int $id Identifier for the entity
@return object|null
Get the entity for the given id .