rendered paste bodyclass BaseACL extends sfDoctrineRecord{ public function setTableDefinition() { $this->setTableName('acl'); $this->hasColumn('user_id', 'integer', 10, array ()); $this->hasColumn('installationprovider_id', 'integer', 10, array ()); $this->hasColumn('reseller_id', 'integer', 10, array ()); $this->hasColumn('access_level', 'integer', 10, array ()); } public function setUp() { $this->hasOne('User as User', array('local' => 'user_id', 'foreign' => 'id' )); $this->hasOne('InstallationProvider as InstallationProvider', array('local' => 'installationprovider_id', 'foreign' => 'id' )); $this->hasOne('Reseller as Reseller', array('local' => 'reseller_id', 'foreign' => 'id' )); }}class BaseUser extends sfDoctrineRecord{ public function setTableDefinition() { $this->setTableName('users'); $this->hasColumn('subject', 'string', 100, array ( 'unique' => true,)); $this->hasColumn('is_active', 'boolean', null, array ()); } public function setUp() { $this->hasMany('ACL as ACLs', array('local' => 'id', 'foreign' => 'user_id')); }}$user_db = $this->getUser()->retrieveUser();if (empty($user_db)) { $user_db = new User(); $user_db->setSubject($this->getUser()->getAttribute('user_dn')); $user_db->setIsActive('1'); $user_db->save(); // authenticate the new user $this->getUser()->processLogin($user_db);}$acl = new ACL();$acl->setUser($user_db); // 'Unknown property / related component 'id'.'$acl->setReseller($reseller);$acl->setAccessLevel('7');$acl->save();