Yii Framework Forum: Owner And Requester Show Null (Chapter5) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Owner And Requester Show Null (Chapter5)

#1 User is offline   timkan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 20-December 12

Posted 20 December 2012 - 07:44 AM

Hello All,
test code and find issue,chapter5 page107 first project and issue creation is ok, but second project and more,and issue create will show abnormal,Owner and Requester null.
attachment for your reference.Pls help and thanks a lot.

Attached File(s)


0

#2 User is offline   jefftulsa 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 168
  • Joined: 06-October 08
  • Location:Austin, TX

Posted 20 December 2012 - 01:28 PM

View Posttimkan, on 20 December 2012 - 07:44 AM, said:

Hello All,
test code and find issue,chapter5 page107 first project and issue creation is ok, but second project and more,and issue create will show abnormal,Owner and Requester null.
attachment for your reference.Pls help and thanks a lot.


Keep in mind that the book is building an application, and so are you, along the way.

On page 103, we explicitly assigned users #1 and #2 to the first project using direct SQL. This is in order to have a couple of users assigned to that first project for the purpose of being able to complete the initial issue management feature. It is not until chapter 6, where we get into user management, that we build the feature to allow the "owner" of the project to assign users to their project. So, you will need to continue on with the building of the application (i.e. continue on to chapter 6) in order to get users assigned to projects and then they will be available to be assigned to issues within those projects.

Hope this helps.



0

#3 User is offline   pathman 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 30-April 12

Posted 24 December 2012 - 08:34 AM

insert into tbl_project_user_assignment then will be ok.enjoy with your code :)


INSERT INTO 'tbl_project_user_assignment' ('project_id', 'user_id')
VALUES (1,1), (1,2);
0

#4 User is offline   timkan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 20-December 12

Posted 24 December 2012 - 10:07 PM

done,thanks:)
for second project,INSERT INTO 'tbl_project_user_assignment' ('project_id', 'user_id')VALUES (2,1), (2,2);
third project,INSERT INTO 'tbl_project_user_assignment' ('project_id', 'user_id')VALUES (3,1), (3,2)...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users