B
B
BenJackson2016-08-11 12:11:27
MySQL
BenJackson, 2016-08-11 12:11:27

YII2 table input with dynamic number of columns, how?

Good day!
There is such database:
Essence in the following 933aede55a6f43ff93fddd1854d3f36b.JPG
Complexity with filling of the table 'budget'. As a result, I want to get the following form:
584aacab046c4f7d83b924e242172b0a.JPG
project_id - id of the selected project, in which we fill in the budget
costitem_id - a list that is associated with the project through the projectcostitem table
period - the name of the month, the first "MONTH(start_date)" and so on until "MONTH(end_date)"
budget - in fact, the budget for the respective month
How can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-08-13
@slo_nik

For example, you can try to implement using the relationship declaration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question