sfdoctrineguardplugin user connecté.
Bonjour,
je travaille avec sfdoctrineguardplugin sous doctrine.le besoin est : comment récupérer le nom et le groupe de la personne connecté depuis la table sf_gurad_user pour le nom est sf_guard_group pour le group???
merci d'avance !!!
fonction return data user.
re,
voila exactement mon besoin,c'est la récupération de username au sein de ma fonction MissionTable.class.php:
Code:
1 2 3 4 5
| SELECT sf_guard_group.description,sf_guard_permission.name
FROM sf_guard_user, sf_guard_user_group, sf_guard_group,missionaire
WHERE sf_guard_user.id = sf_guard_user_group.user_id
AND sf_guard_user_group.group_id = sf_guard_group.id
AND sf_guard_user.username = recupérer login personne connecté |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
| SfGuardGroup:
connection: doctrine
tableName: sf_guard_group
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
name:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
description:
type: string()
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
SfGuardGroupPermission:
local: id
foreign: group_id
type: many
SfGuardUserGroup:
local: id
foreign: group_id
type: many
SfGuardGroupPermission:
connection: doctrine
tableName: sf_guard_group_permission
columns:
group_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: false
permission_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
SfGuardGroup:
local: group_id
foreign: id
type: one
SfGuardPermission:
local: permission_id
foreign: id
type: one
SfGuardPermission:
connection: doctrine
tableName: sf_guard_permission
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
name:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
description:
type: string()
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
SfGuardGroupPermission:
local: id
foreign: permission_id
type: many
SfGuardUserPermission:
local: id
foreign: permission_id
type: many
SfGuardUser:
connection: doctrine
tableName: sf_guard_user
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
first_name:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
last_name:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
email_address:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
username:
type: string(128)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
algorithm:
type: string(128)
fixed: false
unsigned: false
primary: false
default: sha1
notnull: true
autoincrement: false
salt:
type: string(128)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
password:
type: string(128)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
is_active:
type: integer(1)
fixed: false
unsigned: false
primary: false
default: '1'
notnull: false
autoincrement: false
is_super_admin:
type: integer(1)
fixed: false
unsigned: false
primary: false
default: '0'
notnull: false
autoincrement: false
last_login:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
matricule:
type: string()
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
SfGuardForgotPassword:
local: id
foreign: user_id
type: many
SfGuardRememberKey:
local: id
foreign: user_id
type: many
SfGuardUserGroup:
local: id
foreign: user_id
type: many
SfGuardUserPermission:
local: id
foreign: user_id
type: many
SfGuardUserGroup:
connection: doctrine
tableName: sf_guard_user_group
columns:
user_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: false
group_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
SfGuardGroup:
local: group_id
foreign: id
type: one
SfGuardUser:
local: user_id
foreign: id
type: one
SfGuardUserPermission:
connection: doctrine
tableName: sf_guard_user_permission
columns:
user_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: false
permission_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
SfGuardPermission:
local: permission_id
foreign: id
type: one
SfGuardUser:
local: user_id
foreign: id
type: one |
merci d'avance et pour mon chéma je trouve pas d'alaice est se que je doit les ajouter manuelement au fihcier ou contunier commsa ???merci ;)