Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

use of Key model_id doesn't work

#104
/** !BelongsTo person, Key: person_id */
class Post extends Model {}

/** !HasMany post */
class Person extends Model {}

$person->post();

It works if I use PersonId instead

Can I use Key: some_custom_id_field?

Reported by nx2zdk (at gmail) · August 4th, 2009 @ 03:36 AM

State: hold
Milestone: 0.20
Assigned to: Kris Jordan Kris Jordan

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.