Ticket #25 (reopened task)

Opened 6 years ago

Last modified 6 years ago

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

Changed 6 years ago by john

  • cc cybil@… removed
  • keywords eqrtlteonardre removed
  • component changed from Action Mailer to Active Record
  • severity changed from critical to normal

Changed 6 years ago by john

  • type changed from 1 to task
Note: See TracTickets for help on using tickets.