Re: [symfony-users] Re: A simple private messaging system plugin [does it exists ?]
How about integrating phpBB3 into sfDoctrineGuardPlugin? It should be easy enough. Try googling phpbb3 external login. There's about 20 lines of code that let's you get the login information after someone has logged into phpBB3. Then add that to symfony and you get PMs plus forums. On Sat, Oct 9, 2010 at 4:17 AM, Tristan wrote: > Nobody ? ='( > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Edit form data does not update
My edit form does not update when I make changes to it. I have to wait a couple of seconds and hit refresh. Same with a page that queries the database and shows the records. The table is updated in mysql, but the form shows the old value. public function executeEdit(sfWebRequest $request) { $this->forward404Unless($items = Doctrine::getTable('items')->find(array($request->getParameter('item_id'))), sprintf('Object items does not exist (%s).', $request->getParameter('item_id'))); //make sure the item being edited is owned by the logged in user $this->forward404Unless($items->getUser_id()==$this->getUser()->getGuardUser()->getId()); //set category id $query=Doctrine_Query::create() ->select('name') ->from('categories') ->where('category_id="'.$items->category_id.'"') ->limit(1); $category=$query->fetchArray(); @$items->category_id=$category[0]['name']; $this->form = new itemsUserForm($items); } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Unknown record property / related component "permissions" on "sfGuardUser" && setLabel() on a non-object
I found the problem for the second issue. I had to delete all SFGuard Forms from lib/form/doctrine/base and reinstall. On Wed, Sep 22, 2010 at 10:07 PM, Social It wrote: > I fixed the first problem by following instructions here and deleting the > BaseSfGuard classes with > > rm ./lib/model/doctrine/base/BaseSfGuard* > > http://oldforum.symfony-project.org/index.php/m/102097/ > > <http://oldforum.symfony-project.org/index.php/m/102097/>But I'm still > having a problem with the setLabel() issue. I uninstalled the plugin and > installed manually but still not having any luck. > > > On Wed, Sep 22, 2010 at 7:11 PM, Social It wrote: > >> I'm having a weird problem with my symfony backend. I can log in once, >> but after that I get >> >> Unknown record property / related component "permissions" on "sfGuardUser" >> >> Also, when I do login and try to edit a record from any module, I get >> >> Fatal error: Call to a member function setLabel() on a non-object in >> plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class.php >> on line 28 >> >> Please help! >> > > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Unknown record property / related component "permissions" on "sfGuardUser" && setLabel() on a non-object
I fixed the first problem by following instructions here and deleting the BaseSfGuard classes with rm ./lib/model/doctrine/base/BaseSfGuard* http://oldforum.symfony-project.org/index.php/m/102097/ <http://oldforum.symfony-project.org/index.php/m/102097/>But I'm still having a problem with the setLabel() issue. I uninstalled the plugin and installed manually but still not having any luck. On Wed, Sep 22, 2010 at 7:11 PM, Social It wrote: > I'm having a weird problem with my symfony backend. I can log in once, but > after that I get > > Unknown record property / related component "permissions" on "sfGuardUser" > > Also, when I do login and try to edit a record from any module, I get > > Fatal error: Call to a member function setLabel() on a non-object in > plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class.php > on line 28 > > Please help! > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Unknown record property / related component "permissions" on "sfGuardUser" && setLabel() on a non-object
I'm having a weird problem with my symfony backend. I can log in once, but after that I get Unknown record property / related component "permissions" on "sfGuardUser" Also, when I do login and try to edit a record from any module, I get Fatal error: Call to a member function setLabel() on a non-object in plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class.php on line 28 Please help! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Equivalent to setPeerCountMethod in Doctrine
Just found it. There is an equivalent: $pager->setCountQuery($query, [params]) The only thing you need to do is in your pagination navigation helper: $pagerRange = $pager->getRange('Sliding',array('chunk' => 5)); $pages = $pagerRange->rangeAroundPage(); foreach ($pages as $page) On Tue, Sep 14, 2010 at 3:15 PM, ScherlOMatic wrote: > Hi! > > I took a look on the api (http://www.symfony-project.org/api/1_4/ > sfDoctrinePager) and as you can see there is no equivalent. > > Maybe you could give us some more information about what you want to > do, because it's been nearly a year since I worked with Propel. > > > Ciao > > On 14 Sep., 13:43, Social It wrote: > > In propel setPeerCountMethod is used to change the count query in > > pagination. Does anybody know its equivalent in doctrine? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Equivalent to setPeerCountMethod in Doctrine
In propel setPeerCountMethod is used to change the count query in pagination. Does anybody know its equivalent in doctrine? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] sfGuard Error
Hello: I'm getting this error when I'm trying to implement this code. The first code block with $user seems to work as the database is updated, but the second part fails. This is the error: Unknown record property / related component “sf_guard_user” on “sfGuardUserProfile” public function executeCreateAccount() { $user = new sfGuardUser(); $user->setUsername($this->getRequestParameter('username')); $user->setPassword($this->getRequestParameter('password')); $user->setIsActive(false); $user->save(); $profile = new sfGuardUserProfile(); $profile->setsfGuardUser($user); $profile->setEmail($this->getRequestParameter('user_email')); $profile->setRemember($this->getRequestParameter('remember', true)); $profile->save(); $this->getRequest()->setAttribute('user', $user); $raw_email = $this->sendEmail('user', 'registrationConfirmation'); $this->logMessage($raw_email, 'debug'); $this->setFlash('user_email', $this- >getRequestParameter('user_email')); $this->redirect('user/askConfirmation'); } Here is my schema.yml for the user profile: sf_guard_user_profile: columns: id: { type: integer, primary: true, autoincrement: true } user_id: { type: integer } firstname: { type: string(255) } lastname: { type: string(255) } user_email: { type: string(255) } relations: sfGuardUser: type: one foreignType: one class: sfGuardUser local: user_id foreign: id onDelete: cascade foreignAlias: Profile -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Pagination works with table but not with query
Hello: I am trying to paginate a query on a debate with a lot of records. Paginating the table works fine, but when I add the query, even with a limit, the script times out. Here is the code: $query=Doctrine_Query::create() ->select('c.name, d.phone') ->from('company c, companyDetails d') ->where('c.companyId=d.companyId'); ->limit(1000); $pager = new sfDoctrinePager('company',10); $pager->setQuery($query); $pager->setPage(1); $pager->init(); $this->companys=$pager->getResults(); -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Pagination works with table but not with query
Hello: I am trying to run a query on two tables and paginate the results. My db is massive and will crash the server if all results are pulled. sfDoctrinePager seems to limit the results when I just pull straight from a table, but when I try to set a query it lags and then crashes. Do I need to put a LIMIT and OFFSET on the query I am running, and then send it to pagination? Here is the code: $query=Doctrine_Query::create() ->select('c.name, d.phone') ->from('company c, companyDetails d') ->where('c.companyId=d.companyId'); $pager = new sfDoctrinePager('company',10); $pager->setQuery($query); $pager->setPage(1); $pager->init(); $this->companys=$pager->getResults(); Thanks. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en