Skip to main content
Stéphane Quantin

Main navigation

  • Portfolio
  • About
  • Freelance Drupal
    • Audit de site Drupal
    • Drupal maintenance contract
  • Blog
  • CV
  • Contact
  • Developer tools
Languages
  • French
  • English

Breadcrumb

  1. Home

PHP

Enter a comma-separated list of words to describe your content.

View of the Yogarik project

Yogarik - Drupal site, content features and maintenance

Technologies
Drupal 8
PHP
Twig
CSS
Composer
Capistrano
Period
May 2017 - June 2020

Development and maintenance of an editorial Drupal site for Yogarik.

View of the Air Liquide project

Air Liquide - Drupal 7 web ecosystem redesign

Technologies
Drupal 7
PHP
JavaScript
CSS
Period
2015 - 2022

Redesigning an international ecosystem of 180 websites on Drupal 7.

By StephaneQ , Wed, Jul 27, 2011 - 09:59

symfony 1.4 : pass parameters on table_method in a sfWidgetFormDoctrineChoice

The widget sfWidgetFormDoctrineChoice accepts option 'table_method', where you can define a method that returns a query, a collection of objects or a single object. This allows you to customize the results of our widget.

However, the problem is that it is impossible to pass parameters to this method, which may be necessary. One solution is to create a custom widget that accept parameters to it.

By StephaneQ , Thu, Jan 27, 2011 - 16:07

Select a custom column with Propel in Symfony 1.4

Here's a snippet, which allows you to select only one column in a query, and access to the result in symfony.
$c = new Criteria();
$c->clearSelectColumns();
$c->addSelectColumn(objectPeer::COUNTRY);
$c->setDistinct();
$res = objectPeer::doSelectStmt($c);
while ($row = $res->fetch()) {
$country = $row[0];
}
?>

Works with Propel 1.4 and symfony 1.3/1.4.

Pagination

  • Previous page
  • 2
PHP

Social networks

  • Malt
  • codeur.com
  • 404Works
  • LinkedIn
  • Twitter
  • DoYouBuzz

Twitter

Tweets by @StephaneQ
RSS feed

Pied de page

  • Contact
  • Mentions légales
Powered by Drupal