itamar
itamar

Reputation: 3967

Pulling the correct field into $this->Form->input in CakePHP

I have a join model for Users and Courses called Subscriptions. In the subscription's add view, it gives me a blank select.

The correct field for the User would be username. And I'm sure it's calling something like name somewhere by mistake - I just have no idea where.

Can anyone help me? Thanks!

Upvotes: 0

Views: 33

Answers (1)

Ben Hitchcock
Ben Hitchcock

Reputation: 1378

Have you set the displayField property on the User model?

Upvotes: 1

Related Questions