I'm new to defining relationships and frameworks all together, I want to define and create databalse relationships on model without change by hand
for example:
Heres is the relevant information: User Table:
Table: Users
id - int (auto increment)
user_id - int - primarykey
username - varchar(20)
Profile Table:
Table: Profile
id - int (auto increment) - primarykey
name - varchar(20)
User and profile links for relationship
(Users) user_id (Profile) id
how to create this relationship with model generator in laravel4 like with YII framework?
this can has one to one or many to many