Re: [symfony-users] Routing different in prod and dev
Did you clear cache? On Mon, Nov 30, 2009 at 4:08 AM, ashton wrote: > I'm struggling with a routing issue. New project, and I have an index > module, and a 'list' action and 'index' action. > > These urls work: > /frontend_dev.php/index/index (in dev) > /index/index > /frontend_dev.php/index/list > > this does not: > /index/list > > here is my routing.yml: > # default rules > homepage: > url: / > param: { module: index, action: index } > > default_index: > url: /:module > param: { action: index } > > default: > url: /:module/:action/* > > I don't know what is wrong with the prodcution one, because all the > errors are suppressed. > > Or, alternatively, my problem is that I can't enable logging or > web_debug for production: > > settings.yml: > prod: > .settings: >error_reporting: >no_script_name: on >logging_enabled:on >web_debug: on > > with my settings.yml like this, the log dir still only contains > frontend_dev.php and backend_dev.php, and the web debug toolbar > doesn't show up in production. > > thanks > ashton > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] sfDoctrineGuard Plugin uses deprecated Stuff
Hi all, I just upgraded a new project to 1.4 and ran the project:validate Task. It shows an error in sfDoctrineGuard Plugin, meaning that it is not ready for 1.4. The error reads as follows: 1. 7. Checking usage of array notation with a parameter holder 2. 3. 1 file(s) need to be changed. 4. ROOT/plugins/sfDoctrineGuardPlugin/modules/sfGuardUser/lib/BasesfGuardUserActions.class.php 5. 6. The files above use the array notation with a parameter holder, 7. which is not supported anymore in symfony 1.4. 8. For instance, you need to change this construct: 9. 10. $foo = $request->getParameter('foo[bar]') 11. 12. to this one: 13. 14. $params = $request->getParameter('foo') 15. $foo = $params['bar']) Should I report to the symfony Bugtracker or is there any other location for sfDoctrineGuard Plugin? Regards, Christopher. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Using extended class in functional tests
2009/11/20 Peter Theill > I have added "setUid" and "getUid" methods in my "myUser.class.php" > but when I'm running my functional tests I'm not able to use these > methods. I get: > > sfException: Call to undefined method myUser::setUid. > > My "myUser.php.class" looks like this: > > > class myUser extends sfBasicSecurityUser { > >public function getUid() { >return $this->getAttribute('username'); >} > >public function setUid($uid) { >$this->setAttribute('username', $uid); >$this->setAuthenticated(!empty($uid)); >} > } > > My test class (which fails) looks like: > > > include(dirname(__FILE__).'/../../bootstrap/functional.php'); > > $browser = new sfTestFunctional(new sfBrowser()); > $browser-> >get('/handins')-> >setField('sessions[username]', 'john.doe')-> >setField('sessions[password]', '123456')-> >click('Connect')-> >isRedirected()-> > > It fails in the controller where I call: > > $this->getUser()->setUid($form['username']->getValue()); > > > I would like to use my "myUser" in my test environment as well but it > seems like it's using "sfTesterUser" which doesn't have these > methods. > > How would I solve this properly? > > > I have this issue also, the subclass myUser is working correclty when viewing the page on the browser but an exception is thrown when calling from testing environment. last lines of debug 500 | Internal Server Error | sfException Call to undefined method myUser::findCulture. stack trace - at () in SF_ROOT_DIR/lib/symfony-1.2.9/lib/user/sfUser.class.php line 285 - at sfUser->__call('findCulture', array(*object*('sfWebRequest'))) in n/a line n/a -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Accesing the messages sent to the user in my social network
Thanks Gábor, I finally use a query also. This time i would like to show the username of the person who send the message next to the title and the text of the message. I've thought the solution could be execute this query below: class MensajeTable extends Doctrine_Table { public static function getMensajesUsuario($id) { $q = Doctrine_Query::create() ->from('Mensaje m') ->leftJoin('m.User u') ->where('m.receptor_id = ?', $id); $m = $q->execute(); return $m; } } In the controller: class mensajeActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this->mensajes_usuario = MensajeTable::getMensajesUsuario ($this->getUser()->getGuardUser()->getId()); } } And then showing the results of the query in a template in this way: getTitulo() ?> getContenido() ?> getCreatedAt() ?> getUsername() ?> But when i get this error: Unknown method Mensaje::getUsername Do you know what is going wrong? For the Propel people: Do you know if the approach is at least right? Bye Javi On Nov 25, 10:01 am, Gábor Fási wrote: > Without any info on how you store the messages, my guess is: > > $c = new Criteria(); > $c->add(MessagePeer::USER_ID, $this->getUser()->getId()); > return MessagePeer::doSelect($c); > > On Wed, Nov 25, 2009 at 13:45,tirengarfio wrote: > > Hi, > > > as many of you have guessed im making a little social network. > > > Now i need to fetch the messages of the user receives from other > > members of the social network. > > > The line below access to the first message sent to the user: > > > $this->getUser()->getGuardUser()->getMessage(); > > > but.Is there any way to fetch ALL the messages sent to the user?? > > > I have tried with getMessageS(), or writting that line inside a loop > > but it doesnt work...:) > > > Bye > > > Javi > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Accesing the messages sent to the user in my social network
Solved: i made this mistake: getUsername() ?> instead of getUser()->getUsername() ?> Javi On Nov 30, 5:57 am, tirengarfio wrote: > Thanks Gábor, I finally use a query also. > > This time i would like to show the username of the person who send the > message next to the title and the text of the message. > > I've thought the solution could be execute this query below: > > class MensajeTable extends Doctrine_Table > { > > public static function getMensajesUsuario($id) > { > > $q = Doctrine_Query::create() > ->from('Mensaje m') > ->leftJoin('m.User u') > ->where('m.receptor_id = ?', $id); > > $m = $q->execute(); > > return $m; > > } > > } > > In the controller: > > class mensajeActions extends sfActions > { > public function executeIndex(sfWebRequest $request) > { > $this->mensajes_usuario = MensajeTable::getMensajesUsuario > ($this->getUser()->getGuardUser()->getId()); > > } > > } > > And then showing the results of the query in a template in this way: > > > > getTitulo() ?> > > getContenido() ?> > > getCreatedAt() ?> > > getUsername() ?> > > > > But when i get this error: > > Unknown method Mensaje::getUsername > > Do you know what is going wrong? > > For the Propel people: Do you know if the approach is at least right? > > Bye > > Javi > > On Nov 25, 10:01 am, Gábor Fási wrote: > > > Without any info on how you store the messages, my guess is: > > > $c = new Criteria(); > > $c->add(MessagePeer::USER_ID, $this->getUser()->getId()); > > return MessagePeer::doSelect($c); > > > On Wed, Nov 25, 2009 at 13:45,tirengarfio wrote: > > > Hi, > > > > as many of you have guessed im making a little social network. > > > > Now i need to fetch the messages of the user receives from other > > > members of the social network. > > > > The line below access to the first message sent to the user: > > > > $this->getUser()->getGuardUser()->getMessage(); > > > > but.Is there any way to fetch ALL the messages sent to the user?? > > > > I have tried with getMessageS(), or writting that line inside a loop > > > but it doesnt work...:) > > > > Bye > > > > Javi > > > > -- > > > > You received this message because you are subscribed to the Google Groups > > > "symfony users" group. > > > To post to this group, send email to symfony-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > symfony-users+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] sfDoctrineGuard Plugin uses deprecated Stuff
Christopher Schnell wrote: > Hi all, > > I just upgraded a new project to 1.4 and ran the project:validate Task. > It shows an error in sfDoctrineGuard Plugin, meaning that it is not > ready for 1.4. The error reads as follows: > >1. > 7. Checking usage of array notation with a parameter holder >2. > >3. > 1 file(s) need to be changed. >4. > > > ROOT/plugins/sfDoctrineGuardPlugin/modules/sfGuardUser/lib/BasesfGuardUserActions.class.php >5. > >6. > The files above use the array notation with a parameter holder, >7. > which is not supported anymore in symfony 1.4. >8. > For instance, you need to change this construct: >9. > > 10. > $foo = $request->getParameter('foo[bar]') > 11. > > 12. > to this one: > 13. > > 14. > $params = $request->getParameter('foo') > 15. > $foo = $params['bar']) > > Should I report to the symfony Bugtracker or is there any other location > for sfDoctrineGuard Plugin? fixed. Thanks, Fabien > > Regards, > Christopher. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Where to put the logic?
Hello, in my application, I would like to have this logic: When I add a client, I would like to autmatically add an admin user for the client. For me this belongs to the client object logic, and I have put it in postInsert. But if I use doctrine:data-dump and afterwards doctrine:data-load, I receive double users (or unique constraint violations), because first a user is inserted by the client object, and then by doctrine:data-load. One could argue that the addition of the admin user is not part of the model logic, but the controller should take care of it. What is the best way to do this? Is there a way in doctrine to switch of all pre/post save code for data-load? Georg -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: DBFinderPlugin future
Tony Piper wrote: > +1 from me. It would be great if François could update it for Propel > 1.4 and Symfony 1.3/1.4 compatibility - it would probably take him > just a few minutes (relative to how long it would take me)… > > The lack of DbFinder is a show-stopper for my 1.2->1.3 upgrade testing > and migration plans. +1 from me too. Our project also heavily depends on DbFinder for Propel, because I used it for all the queries that are a little too complex for Criteria only. David -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Doctrine Query
Well, I really need help. This might be a stupid error but I can't figure it out symfony 1.2 / Doctrine sfDoctrineGuardUser sfDoctrineApplyPlugin schema for the apply / business logic is : sfGuardUserProfile: tableName: sf_guard_user_profile columns: id: { type: integer(4), primary: true, autoincrement: true } user_id: { type: integer(4), notnull: true } email:{ type: string(80) } fullname:{ type: string(80) } first_name: { type: string(80) } ... relations: sfGuardUser:{ local: user_id, foreign: id, type: one, onDelete: cascade, foreignType: one, foreignAlias: Profile } EitInvoice: tableName: eit_invoice actAs:{ Timestampable: ~ } columns: id: { type: integer(4), primary: true, autoincrement: true } user_profile_id: { type: integer, notnull: true } invoice_date: { type: date, notnull: true } invoice_quarter: { type: string(5), notnull: true } ... relations: sfGuardUserProfile: local:user_profile_id foreign: id type: one foreignType: one onDelete: CASCADE I just try to get invoice for the identified user So in EitInvoiceTable.class.php : class EitInvoiceTable extends Doctrine_Table { public function getCurrentYearInvoices($user) { $nowQuarter = QuarterTools::getNow(); $prevYear = QuarterTools::toDate($nowQuarter['year']-1,$nowQuarter ['quarter'],1,"Y-m-d"); $fields = 'i.invoice_quarter AS quarter, i.invoice_date AS date, i.invoice_file AS file'; $q=Doctrine_Query::create() ->from("EitInvoice i, i.sfGuardUserProfile p") ->orderBy('quarter') ->where('date > "'.$prevYear.'"') ->andWhere("p.sfGuardUser.username LIKE ?",$user) ->select($fields) ; return $q->execute(); } } get the SQL in the log : SELECT e.invoice_quarter AS e__0, e.invoice_date AS e__1, e.invoice_file AS e__2 FROM eit_invoice e LEFT JOIN sf_guard_user_profile s ON e.user_profile_id = s.id LEFT JOIN sf_guard_user s2 ON s.user_id = s2.id WHERE e__1 > "2008-10-01" AND s2.username LIKE ? ORDER BY e__0 - (jilom...@gmail.com ) Using this query I got 3 answers (normal) but using the action return value only get 1 answer :-( Any idea ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Symfony Upgrade Day?
Hello, I have a (maybe not bad) idea: What about to organize a worldwide Symfony Upgrade Day. I think it will be a weekend day. At this day people can organize small events in their town to help each other in upgrading their projects. It will be good when core developers can join this event online to support people. It will be a great day to plugin developers also. So? Szabolcs Heilig -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Accesing the messages sent to the user in my social network
I was just going to respond that Username would be in the join with User and so you would need to use getUser() to get the Username from the join itself On Mon, Nov 30, 2009 at 1:51 PM, tirengarfio wrote: > Solved: i made this mistake: > > getUsername() ?> instead of >getUser()->getUsername() ?> > > Javi > > On Nov 30, 5:57 am, tirengarfio wrote: > > Thanks Gábor, I finally use a query also. > > > > This time i would like to show the username of the person who send the > > message next to the title and the text of the message. > > > > I've thought the solution could be execute this query below: > > > > class MensajeTable extends Doctrine_Table > > { > > > > public static function getMensajesUsuario($id) > > { > > > > $q = Doctrine_Query::create() > > ->from('Mensaje m') > > ->leftJoin('m.User u') > > ->where('m.receptor_id = ?', $id); > > > > $m = $q->execute(); > > > > return $m; > > > > } > > > > } > > > > In the controller: > > > > class mensajeActions extends sfActions > > { > > public function executeIndex(sfWebRequest $request) > > { > > $this->mensajes_usuario = MensajeTable::getMensajesUsuario > > ($this->getUser()->getGuardUser()->getId()); > > > > } > > > > } > > > > And then showing the results of the query in a template in this way: > > > > > > > > getTitulo() ?> > > > > getContenido() ?> > > > > getCreatedAt() ?> > > > > getUsername() ?> > > > > > > > > But when i get this error: > > > > Unknown method Mensaje::getUsername > > > > Do you know what is going wrong? > > > > For the Propel people: Do you know if the approach is at least right? > > > > Bye > > > > Javi > > > > On Nov 25, 10:01 am, Gábor Fási wrote: > > > > > Without any info on how you store the messages, my guess is: > > > > > $c = new Criteria(); > > > $c->add(MessagePeer::USER_ID, $this->getUser()->getId()); > > > return MessagePeer::doSelect($c); > > > > > On Wed, Nov 25, 2009 at 13:45,tirengarfio > wrote: > > > > Hi, > > > > > > as many of you have guessed im making a little social network. > > > > > > Now i need to fetch the messages of the user receives from other > > > > members of the social network. > > > > > > The line below access to the first message sent to the user: > > > > > > $this->getUser()->getGuardUser()->getMessage(); > > > > > > but.Is there any way to fetch ALL the messages sent to the user?? > > > > > > I have tried with getMessageS(), or writting that line inside a loop > > > > but it doesnt work...:) > > > > > > Bye > > > > > > Javi > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > > > > To post to this group, send email to symfony-us...@googlegroups.com. > > > > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > . > > > > For more options, visit this group athttp:// > groups.google.com/group/symfony-users?hl=en. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Symfony Upgrade Day
Hello, I have a (maybe not bad) idea: What about to organize a "worldwide" Symfony Upgrade Day? I think it will be a weekend event. At this day people can organize small events in their town to help each other in upgrading their projects. It will be good if core developers can join this event online to support people joining this event. It will be a great day to plugin developers also. So? Szabolcs Heilig -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Symfony Upgrade Day
Although I already upgraded, this sounds like a great plan to me! On Nov 30, 3:51 pm, Heilig Szabolcs wrote: > Hello, > > I have a (maybe not bad) idea: > > What about to organize a "worldwide" Symfony Upgrade Day? I think it will be > a weekend event. > At this day people can organize small events in their town to help each > other in upgrading > their projects. It will be good if core developers can join this event > online to support people > joining this event. > > It will be a great day to plugin developers also. > > So? > > Szabolcs Heilig -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Updating existing database records with symfony forms
Hello, I accidentally noticed that by default symfony generated forms allow updating of existing objects without passing the primary key(s) in the $taintedValues array which results in odd behavior (to me, anyway). Here's a simple example: $f = new ObjectForm(Doctrine_Core::getTable('Object')->findOneByColumn ('value')); $f->bindAndSave($data); # $data is valid and does NOT contain the primary key During the update process the form will not use the primary key that is set in the object passed to the constructor. For example, in my case, the object row in the database is updated but the PK is set to 0! If $data in the example does contain the PK value, it's fine. Is this the expected behavior in this case? I expected the form not to touch the PK while updating. Regards, Rytis -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] sf1.4+doctrine how to override setter in model
i have this schema Product: columns: name:string(255) description: clob price: { type: decimal, scale: 4 } Order: tableName: m_order columns: total: { type: decimal, scale: 4 } relations: Items: class: OrderItem local: id foreign: order_id type: many foreignType: one cascade: [delete] OrderItem: columns: order_id:integer product_id: integer name:string(255) price: type: decimal scale: 4 quantity:integer total_price: type: decimal scale: 4 relations: Order: class: Order local: order_id foreign: id type: one foreignType: many onDelete: CASCADE Product: local: product_id foreign: id i want to override methods OrderItem->setProduct() and OrderItem- >setQuantity(). _set('Product', $product); $this->setName($product->getName()); $this->setPrice($product->getPrice()); $this->calculate(); } public function setQuantity($quantity) { $this->_set('quantity', $quantity); $this->calculate(); } public function save(Doctrine_Connection $conn = null) { $this->calculate(); return parent::save($conn); } private function calculate() { if ($this->getPrice() && $this->getQuantity()) $this->setTotalPrice ($this->getQuantity() * $this->getPrice()); } } method OrderItem->setProduct() works in action but fails on load fixtures with error "Couldn't call Doctrine_Core::set(), second argument should be an instance of Doctrine_Record or Doctrine_Null when setting one-to-one references." -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] symfony 1.4 unable to create M:N relationship
Hello, I can't create tables for M:N relationship in symfony 1.4. What am I doing wrong? It should be relation between products and categories in an e-shop. (I first made symfony doctrine:build-schema and only slightly modified it to achieve foreign key creation. Without success :( ) schema.yml TEshopProducts: connection: doctrine tableName: t_eshop_products columns: id: type: integer(8) unsigned: false primary: true autoincrement: true nazev: type: string(255) fixed: false unsigned: false primary: false notnull: false autoincrement: false nazev_rozsiren: type: string(255) fixed: false unsigned: false primary: false notnull: false autoincrement: false nazev_seo: type: string(255) fixed: false unsigned: false primary: false notnull: false autoincrement: false slogan: type: string(255) fixed: false unsigned: false primary: false notnull: false autoincrement: false kod: type: string(50) fixed: false unsigned: false primary: false notnull: false autoincrement: false vyrobce: type: integer(4) fixed: false unsigned: true primary: false default: '1' notnull: true autoincrement: false zaruka: type: integer(4) fixed: false unsigned: true primary: false default: '24' notnull: true autoincrement: false cenabezdph_bezna: type: float(10) fixed: false unsigned: false primary: false default: '0.00' notnull: false autoincrement: false cenasdph_bezna: type: float(10) fixed: false unsigned: false primary: false default: '0.00' notnull: false autoincrement: false cenabezdph: type: float(8) fixed: false unsigned: false primary: false default: '0.00' notnull: false autoincrement: false cenasdph: type: float(8) fixed: false unsigned: false primary: false default: '0.00' notnull: false autoincrement: false cenabezdph_akce: type: float(10) fixed: false unsigned: false primary: false notnull: false autoincrement: false cenasdph_akce: type: float(10) fixed: false unsigned: false primary: false notnull: false autoincrement: false cenabezdph_phe: type: float(6) fixed: false unsigned: false primary: false default: '0.00' notnull: true autoincrement: false cenasdph_phe: type: float(6) fixed: false unsigned: false primary: false default: '0.00' notnull: true autoincrement: false stav: type: integer(4) fixed: false unsigned: false primary: false default: '0' notnull: true autoincrement: false sklad: type: integer(4) fixed: false unsigned: false primary: false default: '1' notnull: true autoincrement: false sklad_datum: type: date(25) fixed: false unsigned: false primary: false notnull: false autoincrement: false predtext: type: string() fixed: false unsigned: false primary: false notnull: false autoincrement: false text: type: string() fixed: false unsigned: false primary: false notnull: false autoincrement: false kategorie: type: integer(4) fixed: false unsigned: false primary: false notnull: false autoincrement: false obrazek1: type: string(200) fixed: false unsigned: false primary: false notnull: false autoincrement: false obrazek2: type: string(200) fixed: false unsigned: false primary: false notnull: false autoincrement: false obrazek3: type: string(200) fixed: false unsigned: false primary: false notnull: false autoincrement: false obrazek4: type: string(200) fixed: false unsigned: false primary: false notnull: false autoincrement: false obrazek5: type: string(200) fixed: false unsigned: false primary: false notnull: false autoincrement: false obrazek6: type: string(200) fixed: false unsigned: false primary: false notnull: false autoincrement: false publikovano: type: integer(1) fixed: false unsigned: false primary: false default: '1' notnull: true autoincrement: false poradi: type: integer(4) fixed: false unsigned: false primary: false default: '1' notnull: true autoincrement: false
[symfony-users] Re: sfDoctrineGuard Plugin uses deprecated Stuff
I also upgrade to 1.4 and when I use the sfGuardUser backend, it throws an error when I try to edit a user: Fatal error: Call to a member function setLabel() on a non-object in plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/ BasesfGuardUserAdminForm.class.php on line 26 I have no idea how to solve this. Maybe the functions are deprecated for the forms are deprecated in symfony 1.4 On 30 nov, 13:00, Fabien Potencier wrote: > Christopher Schnell wrote: > > Hi all, > > > I just upgraded a new project to 1.4 and ran the project:validate Task. > > It shows an error in sfDoctrineGuard Plugin, meaning that it is not > > ready for 1.4. The error reads as follows: > > > 1. > > 7. Checking usage of array notation with a parameter holder > > 2. > > > 3. > > 1 file(s) need to be changed. > > 4. > > > > > ROOT/plugins/sfDoctrineGuardPlugin/modules/sfGuardUser/lib/BasesfGuardUserActions.class.php > > 5. > > > 6. > > The files above use the array notation with a parameter holder, > > 7. > > which is not supported anymore in symfony 1.4. > > 8. > > For instance, you need to change this construct: > > 9. > > > 10. > > $foo = $request->getParameter('foo[bar]') > > 11. > > > 12. > > to this one: > > 13. > > > 14. > > $params = $request->getParameter('foo') > > 15. > > $foo = $params['bar']) > > > Should I report to the symfony Bugtracker or is there any other location > > for sfDoctrineGuard Plugin? > > fixed. > > Thanks, > Fabien > > > > > Regards, > > Christopher. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] REST protocol problem while installing plugin from my own pear channel
Good morning America ... oops, just symfony community xD I come now to find you for a very strange stuff. For my company, i would install my own pear server to put my private symfony plugins in (some plugins who we dont want to open source code). I have tried to use Chiara, and today, i try Prium, but the strange stuff is the same : Please note the Pear server installation work well, the uploaded package is normaly given on the server. The server url is "pear.dev.prestaconcept.net", with "presta" as alias. The uploaded package is "prestaTaskPlugin" who is in stable state, and in 1.0.1 revision. On my console, i try this : $ ./symfony plugin:add-channel pear.dev.prestaconcept.net >> pluginadd channel "pear.dev.prestaconcept.net" [...] >> sfPearFrontendPlugin "presta", adding to registry After, i have try this : $ ./symfony plugin:uninstall presta/prestaTaskPlugin >> plugininstalling plugin "presta/prestaTaskPlugin" The channel "presta" does not support the REST protocol But, my pear server accepte this protocol, when i try $ pear channel-info presta Channel pear.dev.prestaconcept.net Information: === Name and Server pear.dev.prestaconcept.net Alias presta Summary Prestaconcept private PEAR channel Validation Package Name PEAR_Validate Validation Package default Version Server Capabilities === Type Version/REST type Function Name/REST base rest REST1.0 http://pear.dev.prestaconcept.net/rest/ rest REST1.1 http://pear.dev.prestaconcept.net/rest/ rest REST1.2 http://pear.dev.prestaconcept.net/rest/ rest REST1.3 http://pear.dev.prestaconcept.net/rest/ So, what's wrong ? Symfony plugin:install task already ask for plugin official pear channel ? There is someone wrong in my installation ? Any kinf of ideas ? PS : we already open source code from many plugin who are available on symfony official plugin repository (search "Presta" on plugin search engine), but some of it are too many important for us to be opened. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Symfony 1.3 + sfGuard 4.0.0 Plugin
when i install the new sfGuard plugin under symfony 1.3 i get : Fatal error: Class 'sfPropelBaseTask' not found in /var/www/felderweb/ nr1-devel/plugins/sfGuardPlugin/lib/task/ sfGuardCreateUserTask.class.php on line 19 Call Stack: 0.0003 57748 1. {main}() /var/www/felderweb/nr1-devel/ symfony:0 0.0035 325840 2. include('/var/www/felderweb/nr1-devel/lib/ vendor/symfony1.3/lib/command/cli.php') /var/www/felderweb/nr1-devel/ symfony:37 0.0079 689504 3. sfCommandApplication->__construct() /var/ www/felderweb/nr1-devel/lib/vendor/symfony1.3/lib/command/cli.php:19 0.0197 943020 4. sfSymfonyCommandApplication->configure() / var/www/felderweb/nr1-devel/lib/vendor/symfony1.3/lib/command/ sfCommandApplication.class.php:61 0.10132910940 5. sfSymfonyCommandApplication->loadTasks() / var/www/felderweb/nr1-devel/lib/vendor/symfony1.3/lib/command/ sfSymfonyCommandApplication.class.php:48 0.17456249120 6. class_exists() /var/www/felderweb/nr1-devel/ lib/vendor/symfony1.3/lib/command/ sfSymfonyCommandApplication.class.php:120 0.17456249396 7. sfSimpleAutoload->autoload() /var/www/ felderweb/nr1-devel/lib/vendor/symfony1.3/lib/autoload/ sfSimpleAutoload.class.php:0 0.17486265224 8. require('/var/www/felderweb/nr1-devel/ plugins/sfGuardPlugin/lib/task/sfGuardCreateUserTask.class.php') /var/ www/felderweb/nr1-devel/lib/vendor/symfony1.3/lib/autoload/ sfSimpleAutoload.class.php:123 any hint? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] move_uploaded_file with a twist
Hey guys, I am making use of move_uploaded_file to upload a bunch of files from my website onto a server, as it goes: move_uploaded_file($_FILES['filename']['tmp_name'],'path/to/store/image') And this works like a charm. But there is a trick here, I wish to make these files reside on some other server and not the server hosting my website. Alternately, if another website/multiplayer game wishes to access these files (we share a common database), they can query and get the path where the files are stored (storing file paths in the db), but how should they gain access to the server where they are stored? Does anyone have any idea how? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] issue about selecting objects in an inheritance context
Many thanks Alex, It works fine. On Sun, Nov 29, 2009 at 11:51 AM, Alexandre SALOME < alexandre.sal...@gmail.com> wrote: > You can get the raw value in template (don't absue of it) : > > $rawValue = $add->getRawValue(); > > > and then do your tests : > > if ($rawValue instanceof myClass) > { > //... > } > > > Alex' > > 2009/11/28 Patrick NDJIENTCHEU > >> Hi symfony people, >> I have an issue that is quite annoying. >> My environment is symfony 1.2 and propel. >> I have a model where I have implemented inheritance using the single-table >> strategy. So, here is an excerpt of my model: >> *Ad* (id, posted_date, description) >> then *RealEstateAd*(location, price, transaction_type) and *JobAd*(position, >> requirements, company) which inherit both from *Ad*. >> >> I would like to display all ads, but I would like to display a >> RealEstateAd differently from a JobAd. To achieve this, I've used a partial >> for a RealEstaeAd and a partial for a JobAd. >> So, in the action, I did this: >> *$c = new Criteria();* >> *$this->allAds = AdPeer::doSelect($c);* >> >> In the template, I did: >> >> ** >> *> * >> * >> *if ($add instanceof RealEstateAdd){* >> *include_partial('shortViewRealEstateAd', array("add" => $ad));* >> *}* >> *if ($add instanceof JobAd) {* >> *include_partial('shortViewJobAd', array("ad" => $ad));* >> *}* >> *?>* >> ** >> ** >> >> The problem is that class of an object in the $allAds array is >> sfOutputEscaperObjectDecorator. >> So, nothing is displayed at all. >> * >> * >> How could I deal with this issue? is there a way to get an array with >> objects which are actually of the class RealEstateAd or JobAd? How is the >> hydrating process carried out here? >> >> >> Many thanks for your help. >> >> -- >> --- >> NDJIENTCHEU NGANDJUI Patrick >> Software Engineer >> >> - >> "To live is to choose. But to choose well, you must know who you are and >> what you stand for, where you want to go and why you want to get there." >> Kofi Annan >> >> -- >> You received this message because you are subscribed to the Google Groups >> "symfony users" group. >> To post to this group, send email to symfony-us...@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. >> > > > > -- > Alexandre Salomé -- alexandre.sal...@gmail.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-us...@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. > -- --- NDJIENTCHEU NGANDJUI Patrick Software Engineer Mob.: (+237) 99 94 91 28 - "To live is to choose. But to choose well, you must know who you are and what you stand for, where you want to go and why you want to get there." Kofi Annan -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Using sfForm as standalone library
Hi Manuel, Just copy the directories "widget", "form" and "validator" from the symfony lib directory to your project. Make sure they are loaded by writing your own autoloading routine or by requiring the files manually. Then you should be fine to go. Bernhard -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Where to put the logic?
Hi Georg, Why don't you just override the save() method of the Client class? You could, for example, check whether any user is associated with the client and, if not, do it manually before calling parent::save(). I personally would prefer to put this logic into the form for creating the Client though, because "magic" save-methods can lead to tricky problems. Is this an option for you? Bernhard -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Using extended class in functional tests
Did you check whether factories.yml is configured to use the correct user class in the test environment? Do you maybe have several myUser classes in your project and symfony is using the wrong one? Bernhard -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Where to put the logic?
The controller isn't responsible for application logic. It must be in your model (if you can...). For this kind of case, I would prefer playing with events. For example, when user is created just dispatch an event like "users.user.new" or whatever sounds like. Then "connect" the app-logic method that add admin-role to user using eventdispather.connect( 'users.user.new', your class method); This way the method of creating the user is strictly "limited" to its area : creating a user; Then somewhere else (in a dedicated class), write the method which will add admin-role to the newly created user (which will be the subject of the event). Check the doc for more info (event system). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Nov 30, 2009 at 9:37 PM, Bernhard Schussek wrote: > Hi Georg, > > Why don't you just override the save() method of the Client class? You > could, for example, check whether any user is associated with the > client and, if not, do it manually before calling parent::save(). > > I personally would prefer to put this logic into the form for creating > the Client though, because "magic" save-methods can lead to tricky > problems. Is this an option for you? > > Bernhard > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Invitation à se connecter sur Linke dIn
LinkedIn J'aimerais vous inviter à rejoindre mon réseau professionnel en ligne, sur le site LinkedIn. Olivier Veuillez confirmer que vous connaissez Olivier Albertini https://www.linkedin.com/e/isd/897798202/fW_knR1b/ Tous les jours, des millions de professionnels comme Olivier Albertini utilisent LinkedIn pour se connecter avec des collègues, trouver des experts et explorer de nouvelles opportunités. -- (c) 2009, LinkedIn Corporation -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Guardar formularios embebidos
Resulta que tengo problemas para guardar mis formularios embebidos, asi que trate de hacer lo que es amigo Stefan me recomendo (al final de este mensaje), pero me arroja el siguiente error: Unable to execute INSERT statement. [wrapped: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`indepabis/persona`, CONSTRAINT `persona_FK_1` FOREIGN KEY (`tipo_persona_id`) REFERENCES `tipo_persona` (`id`))] THIS IS PART OF MY CODE: class DenunciaForm extends BaseDenunciaForm { public function configure() { parent::configure(); unset($this['id'], $this['empleado_id'], $this['fecha'], $this['correlativo'] ); ... if ($this->isNew()) { $denunciante = new Persona(); $this->getObject()->setPersonaRelatedByDenuncianteId( $denunciante ); $denuncianteForm = new PersonaForm( $denunciante, array('tipo' => 'natural')); $denunciado = new Persona(); $this->getObject()->setPersonaRelatedByDenunciadoId( $denunciado ); $denunciadoForm = new PersonaForm( $denunciado, array('tipo' => 'juridica')); }else{ $denunciante = $this->getObject()->getPersonaRelatedByDenuncianteId(); $denunciado = $this->getObject()->getPersonaRelatedByDenunciadoId(); $denuncianteForm = new PersonaForm($denunciante, array('tipo' => strtolower($denunciante->getTipoPersona())) ); $denunciadoForm = new PersonaForm($denunciado, array('tipo' => strtolower($denunciado->getTipoPersona())) ); } $this->embedForm('denunciante', $denuncianteForm); $this->embedForm('denunciado', $denunciadoForm); //NOMBRE DEL FORMULARIO// $this->widgetSchema->setNameFormat('denuncia[%s]'); } protected function doSave($con = null) { if (is_null($con)) { $con = $this->getConnection(); } $this->saveEmbeddedForms($con); //STATICS VALUES// $empleado_id = sfContext::getInstance()->getUser()->getEmpleadoUsuario('id'); $fecha = date('d').'-'.date('m').'-'.date('Y'); $correlativo = Denuncia::obtenerCorrelativo(); $this->getObject()->setEmpleadoId( $empleado_id ); $this->getObject()->setFecha( $fecha ); $this->getObject()->setCorrelativo( $correlativo ); $this->getObject()->save($con); } Alguien tiene alguna idea??? GRACIAS Stefan Paschke escribió: > Hi Germana > > On Nov 20, 2009, at 1:43 AM, Germana Oliveira wrote: > > >> Wel i have this in my lib/form/AudienciaForm.class.php >> >> public function configure() >> { >>if ($this->isNew()) >>{ >>$conciliadorForm = new AudienciaConciliadorForm(); >>$denuncianteForm = new PersonaForm(null, array('tipo' => >> 'natural')); >>$denunciadoForm = new PersonaForm(null, array('tipo' => >> 'juridica')); >> } >> > > so in the 'new' case, you embed the empty forms, but you don't connect their > objects (Persona $denunciate and Persona $denunciado) to the main Audienca > object. Symfony won't know that the objects in the Forms 'denunciante' and > 'denunciado' are actually to be aggregated to the Audienca, you'd need to do: > > $denunciante = new Persona(); > $this->object->setPersonaRelatedByDenuncianteId( $denunciante ); > $denuncianteForm = new PersonaForm( $denunciante, array( 'tipo' => > 'natural' ) ); > $denunciado = new Persona(); > $this->object->setPersonaRelatedByDenunciadoId( $denunciado ); > $denunciadoForm = new PersonaForm( $denunciado, array( 'tipo' => 'natural' > ) ); > > and so on > > >> else{ >>$clase = new AudienciaConciliador(); >>$conciliador = $clase->getEmpleado(); >>$conciliadorForm = new AudienciaConciliadorForm( $conciliador ); >> >>$denunciante = >> $this->getObject()->getPersonaRelatedByDenuncianteId(); >>$denuncianteForm = new PersonaForm($denunciante); >> >>$denunciado = $this->getObject()->getPersonaRelatedByDenunciadoId(); >>$denunciadoForm = new PersonaForm($denunciado); >>} >> > > in the 'update' case, you do aggregate the objects correctly > > >>$this->embedForm('conciliador', $conciliadorForm); >>$this->embedForm('denunciante', $denuncianteForm); >>$this->embedForm('denunciado', $denunciadoForm); >> >> } >> > > hope this helps > > Stefan > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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=. > > > -- Germana Oliveira Telefono: 0426 7457105 Correo-e: germanaoliveirab_at_gmail.com Blog: http://slcarabobo.wordpress.com http://626f67.wordpress.com Carabobo, Venezuela. -- You received this message because you are subscr
Re: [symfony-users] Re: Guardar formularios embebidos
Hi, i dont know how are you doing it but a some weeks ago i worked with embedform using symfony 1.2 - Doctrine as ORM. I wrote a article about it in portuguese. Maybe you understand a bit because the portuguese is a language near to spanish. Here is the link of the article: http://augustomorais.wordpress.com/2009/10/28/embedform-no-symfony-1-2 I hope that it helps you. bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: symfony 1.4 unable to create M:N relationship
hi, Roy. did you looked to http://www.symfony-project.org/doctrine/1_2/en/04-Schema-Files#chapter_04_sub_many_to_many ? hope it will help. On 30 ноя, 02:49, roy master wrote: > Hello, > > I can't create tables for M:N relationship in symfony 1.4. What am I > doing wrong? > > It should be relation between products and categories in an e-shop. (I > first made symfony doctrine:build-schema and only slightly modified it > to achieve foreign key creation. Without success :( ) > > schema.yml > TEshopProducts: > connection: doctrine > tableName: t_eshop_products > columns: > id: > type: integer(8) > unsigned: false > primary: true > autoincrement: true > nazev: > type: string(255) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > nazev_rozsiren: > type: string(255) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > nazev_seo: > type: string(255) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > slogan: > type: string(255) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > kod: > type: string(50) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > vyrobce: > type: integer(4) > fixed: false > unsigned: true > primary: false > default: '1' > notnull: true > autoincrement: false > zaruka: > type: integer(4) > fixed: false > unsigned: true > primary: false > default: '24' > notnull: true > autoincrement: false > cenabezdph_bezna: > type: float(10) > fixed: false > unsigned: false > primary: false > default: '0.00' > notnull: false > autoincrement: false > cenasdph_bezna: > type: float(10) > fixed: false > unsigned: false > primary: false > default: '0.00' > notnull: false > autoincrement: false > cenabezdph: > type: float(8) > fixed: false > unsigned: false > primary: false > default: '0.00' > notnull: false > autoincrement: false > cenasdph: > type: float(8) > fixed: false > unsigned: false > primary: false > default: '0.00' > notnull: false > autoincrement: false > cenabezdph_akce: > type: float(10) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > cenasdph_akce: > type: float(10) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > cenabezdph_phe: > type: float(6) > fixed: false > unsigned: false > primary: false > default: '0.00' > notnull: true > autoincrement: false > cenasdph_phe: > type: float(6) > fixed: false > unsigned: false > primary: false > default: '0.00' > notnull: true > autoincrement: false > stav: > type: integer(4) > fixed: false > unsigned: false > primary: false > default: '0' > notnull: true > autoincrement: false > sklad: > type: integer(4) > fixed: false > unsigned: false > primary: false > default: '1' > notnull: true > autoincrement: false > sklad_datum: > type: date(25) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > predtext: > type: string() > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > text: > type: string() > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > kategorie: > type: integer(4) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > obrazek1: > type: string(200) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > obrazek2: > type: string(200) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > obrazek3: > type: string(200) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > obrazek4: > type: string(200) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > obrazek5: > type: string(200) >
[symfony-users] Public Accessible Code
I want to build some extras (plugins, add ons, whatever), that I can offer to clients. These add ons will be things like photo galleries, news article listings, blogs, etc. I want to put these add ons in a location where any and all projects have access to them. I don't want to have to copy the folder structure to their project. But, I also don't want to modify the symfony core folder structure. Is there a way to do this? Also, would I program these as plugins, modules, or something else? Sorry for these questions, but I am new to symfony (and Doctrine) and still trying to figure everything out. Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Public Accessible Code
On Mon, 30 Nov 2009, Paul Witschger wrote: > I want to put these add ons in a location where any and all projects > have access to them. I don't want to have to copy the folder structure > to their project. But, I also don't want to modify the symfony core > folder structure. Is there a way to do this? Also, would I program these > as plugins, modules, or something else? Yes, package them as plugins. -- A -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] doctrine
I used a lot with propel the possibilty to add a criteria to a generated function. Example : a product has categories, it will generate : public function getProductCategories($criteria = null, $con = null) { } and then I could easily refined with a criteria. But with doctrine it seems not possible to do such things ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] gmail problem
How can I block mail symfony group because I always suppime the mail received? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.