This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » how to use two doctrine behaviours in 1.4
how to use two doctrine behaviours in 1.4 [message #103421] Mon, 02 August 2010 15:22 Go to next message
manojyadav  is currently offline manojyadav
Messages: 3
Registered: June 2010
Location: India
Junior Member
Hi all,
I am new to symfony and using doctrine timestampable and my own behaviour b1. b1 is for storing database activities (add, update and delete) to a table (audit_log). When I use either b1 or timestampable, it works fine with sfdoctrineguard plugin but when I use both timestampable stops working and also last_login column is not updated. please see my schema.yml structure below.

sfGuardUser:
actAs: [Timestampable,LogData]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
username:
type: string(128)
notnull: true
unique: true
algorithm:
type: string(128)
default: sha1
notnull: true
salt: string(128)
password: string(128)
is_active:
type: boolean
default: 1
is_super_admin:
type: boolean
default: false
last_login:
type: timestamp
indexes:
is_active_idx:
fields: [is_active]
relations:
groups:
class: sfGuardGroup
local: user_id
foreign: group_id
refClass: sfGuardUserGroup
foreignAlias: Users
permissions:
class: sfGuardPermission
local: user_id
foreign: permission_id
refClass: sfGuardUserPermission
foreignAlias: Users



-Manoj


[Updated on: Mon, 02 August 2010 15:23]

Re: how to use two doctrine behaviours in 1.4 [message #103437 is a reply to message #103421 ] Mon, 02 August 2010 20:22 Go to previous message
esukf  is currently offline esukf
Messages: 65
Registered: December 2006
Member
By default, Timestampable add a created_at and updated_at column.
http://www.doctrine-project.org/projects/orm/1.2/docs/manual /behaviors/ru#core-behaviors:timestampable
Previous Topic:sfGuardDoctrinePlugin and sfGuardUserProfile : I can't add a new user
Next Topic:Doctrine csrf token required
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software