final public function to_record() {
        $data = new stdClass();
        $properties = static::properties_definition();
        foreach ($properties as $property => $definition) {
            $data->$property = $this->raw_get($property);
        }
        return $data;
    }
final public function to_record() {
        $data = new stdClass();
        $properties = static::properties_definition();
        foreach ($properties as $property => $definition) {
            $data->$property = $this->raw_get($property);
        }
        return $data;
    }
final public function to_record ( ) { $ data = new stdClass ( ) ; $ properties = static :: properties_definition ( ) ; foreach ( $ properties as $ property => $ definition ) { $ data -> $ property = $ this -> raw_get ( $ property ) ; } return $ data ; }
Create a DB record from this class.

Note that this does not use any custom getter because the data here is intended to
represent what is stored in the database.

@return \stdClass
Create a DB record from this class .