Ticket #25 (reopened task)
Where is the project_manager_id?
| Reported by: | anonymous | Owned by: | anonymous |
|---|---|---|---|
| Priority: | low | Milestone: | 1.0 |
| Component: | Active Record | Version: | 0.11.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
url: http://svn.phpontrax.com/wiki/ActiveRecordTableAssociationUsage
I think this is the correct table definition:
CREATE TABLE projects (
id int(11) NOT NULL auto_increment, portfolio_id int(11) NOT NULL, project_manager_id int(11) NOT NULL, name varchar(40) default NULL, created_at datetime default NULL, PRIMARY KEY (id)
)
and the correct Model declaration: class Project extends ActiveRecord? {
public $belongs_to = "portfolio, project_manager"; public $has_many = "milestones"; public $has_and_belongs_to_many = "categories";
}
Please fix it!
Change History
Note: See
TracTickets for help on using
tickets.
