- Timestamp:
- 10/03/08 12:53:45 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/rhaco/trunk/library/model/table/FollowTable.php
r20590 r20593 50 50 function columnId(){ 51 51 if(!Rhaco::isVariable("_R_D_C_","Follow::Id")){ 52 $column = new Column("column=id,variable=id,type=serial,size=22,primary=true," );52 $column = new Column("column=id,variable=id,type=serial,size=22,primary=true,",__CLASS__); 53 53 $column->label(Message::_("id")); 54 54 Rhaco::addVariable("_R_D_C_",$column,"Follow::Id"); … … 58 58 /** 59 59 * 60 * @return serial */ 60 * @return serial 61 */ 61 62 function setId($value){ 62 63 $this->id = TableObjectUtil::cast($value,"serial"); … … 74 75 function columnUserId(){ 75 76 if(!Rhaco::isVariable("_R_D_C_","Follow::UserId")){ 76 $column = new Column("column=user_id,variable=userId,type=integer,size=22,unique=true,reference=User::Id,uniqueWith=Follow::FollowId," );77 $column = new Column("column=user_id,variable=userId,type=integer,size=22,unique=true,reference=User::Id,uniqueWith=Follow::FollowId,",__CLASS__); 77 78 $column->label(Message::_("user_id")); 78 79 Rhaco::addVariable("_R_D_C_",$column,"Follow::UserId"); … … 82 83 /** 83 84 * 84 * @return integer */ 85 * @return integer 86 */ 85 87 function setUserId($value){ 86 88 $this->userId = TableObjectUtil::cast($value,"integer"); … … 98 100 function columnFollowId(){ 99 101 if(!Rhaco::isVariable("_R_D_C_","Follow::FollowId")){ 100 $column = new Column("column=follow_id,variable=followId,type=integer,size=22,require=true,unique=true,uniqueWith=Follow::UserId," );102 $column = new Column("column=follow_id,variable=followId,type=integer,size=22,require=true,unique=true,uniqueWith=Follow::UserId,",__CLASS__); 101 103 $column->label(Message::_("follow_id")); 102 104 Rhaco::addVariable("_R_D_C_",$column,"Follow::FollowId"); … … 106 108 /** 107 109 * 108 * @return integer */ 110 * @return integer 111 */ 109 112 function setFollowId($value){ 110 113 $this->followId = TableObjectUtil::cast($value,"integer"); … … 122 125 function columnCreatedAt(){ 123 126 if(!Rhaco::isVariable("_R_D_C_","Follow::CreatedAt")){ 124 $column = new Column("column=created_at,variable=createdAt,type=timestamp," );127 $column = new Column("column=created_at,variable=createdAt,type=timestamp,",__CLASS__); 125 128 $column->label(Message::_("created_at")); 126 129 Rhaco::addVariable("_R_D_C_",$column,"Follow::CreatedAt"); … … 130 133 /** 131 134 * 132 * @return timestamp */ 135 * @return timestamp 136 */ 133 137 function setCreatedAt($value){ 134 138 $this->createdAt = TableObjectUtil::cast($value,"timestamp");
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)