src/Model/ModelUtil.php
public function getModelInstanceFieldValue(string $field, string $table, int $id)
    {
        if (null !== ($entity = $this->findModelInstanceByPk($table, $id))) {
            return $entity->{$property};
        }

        return null;
    }
public function getModelInstanceFieldValue(string $field, string $table, int $id)
    {
        if (null !== ($entity = $this->findModelInstanceByPk($table, $id))) {
            return $entity->{$property};
        }

        return null;
    }
public function getModelInstanceFieldValue ( string $ field , string $ table , int $ id ) { if ( null !== ( $ entity = $ this -> findModelInstanceByPk ( $ table , $ id ) ) ) { return $ entity -> { $ property } ; } return null ; }
Get model instance value for given field.

@param string $field
@param string $table
@param int    $id

@return mixed|null
Get model instance value for given field .