D
D
des1roer2015-03-21 06:47:49
Yii
des1roer, 2015-03-21 06:47:49

Yii set id equal to zero?

I'm trying to specify id = 0 for a new element. But it doesn't pass through the controller or through the form. it's not feasible at all, is it?
id field naturally primari key and autoincrement

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2015-03-21
@kawabanga

Most likely, you need to set in the rules () section in the model, the settings for the id input.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question