src/User.php
protected function getEmailFromPerson($personId)
    {
        if ($personId) {
            try {
                return \Scool\EbreEscoolModel\Person::find($personId)->person_email;
            } catch (\Exception $e){
                info($e->getMessage());
            }
        }
        return null;
    }
protected function getEmailFromPerson($personId)
    {
        if ($personId) {
            try {
                return \Scool\EbreEscoolModel\Person::find($personId)->person_email;
            } catch (\Exception $e){
                info($e->getMessage());
            }
        }
        return null;
    }
protected function getEmailFromPerson ( $ personId ) { if ( $ personId ) { try { return \ Scool \ EbreEscoolModel \ Person :: find ( $ personId ) -> person_email ; } catch ( \ Exception $ e ) { info ( $ e -> getMessage ( ) ) ; } } return null ; }
Get email from person.

@param $personId
@return null
Get email from person .