Code snippets for symfony 1.x

Navigation

Refine Tags

Snippets tagged "yml"

foreignkey to sf_guard_user

if you won´t to add a foreignkey to sf_guard_user put this on top off you schema.yml file ;)

propel:
  _attributes :          { package: "plugins.sfGuardPlugin.lib.model" }
  sf_guard_user:
    _attributes:         { phpName: sfGuardUser }
    id:

now you can simple add a foreignkey

propel:
  tbl_user_profile:
    user_id:             { type: integer, primaryKey: true, foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade }

or

propel:
  tbl_user_profile:
    sf_guard_user_id:
by Gordon Franke on 2007-04-27, tagged database  foreignkey  model  plugin  propel  schema  security  user  yml 
(1 comment)

turn on form repopulation

add this to your validation file for the action.

eg: indexSuccess.php would have have a file called index.yml in the validate directory for that module if you configured validation.

fillin:
  activate: on   # activate the form repopulation
  param:
    name: test   # name of the form
by Russ Cann on 2006-05-23, tagged forms  repopulation  symfony  validation  yml 
(2 comments)