<?php class TestValue extends Model { protected static $table = "test_value"; protected static $id_field = ["test_id", "name"]; protected static $fillable_fields = ["test_id", "name", "value"]; }