#1325
Answered
10/25/23, 11:50 AM
ÁlvaroMarcos
Answers: 2

Can I work without Jet Studio?

I tried Jet Studio. Interesting tool.

How does it work? Is it possible to develop an application without it?

Answers (2)

#6
10/26/23, 5:27 PM
PHPJetTeam
0

Hello!

Of course. It's no problem.

Jet Studio is actually nothing more than a code generator and a definition generator.

This tool does not use any meta layer and operates directly on the source code and definition information.

For example, you can define ORM definitions (but not only those) yourself in the source code, for example as follows:


#[DataModel_Definition(
    
name'article',
    
database_table_name'articles',
    
id_controller_classDataModel_IDController_UniqueString::class,
    
id_controller_options: [
        
'id_property_name' => 'id'
    
]
)]
class 
Content_Article extends DataModel
{


    #[
DataModel_Definition(
        
typeDataModel::TYPE_ID,
        
is_idtrue
    
)]
    protected 
string $id '';

    #[
DataModel_Definition(
        
typeDataModel::TYPE_DATE_TIME,
    )]
    #[
Form_Definition(
        
typeForm_Field::TYPE_DATE_TIME,
        
label'',
        
error_messages: [
            
Form_Field::ERROR_CODE_INVALID_FORMAT => 'Invalid date format'
        
]
    )]
    protected ?
Data_DateTime $date_time null;

    #[
DataModel_Definition(
        
typeDataModel::TYPE_DATA_MODEL,
        
data_model_classContent_Article_Localized::class
    )]
    #[
Form_Definition(is_sub_forms:true)]
    protected array 
$localized = [];
}

However, we believe that working with Jet Studio is much more efficient and cool ;-)

Have a nice day!

#7
10/29/23, 11:42 AM
ÁlvaroMarcos
0

Pefect, thanks!

Your Answer