public static function fromResourceId($version, $id)
{
$finder = new PasApiAssignment();
$assignment = $finder->findByResource(static::$resource_type, $id, static::$model_class);
if ($model = $assignment->getInternal()) {
if (!$model->isNewRecord) {
$obj = new static($version);
$obj->setAssignment($assignment);
return $obj;
}
}
}