Skip to content

Prettyscripts

Codes and scripts

Menu
  • Home
  • Yii
  • PHP
  • WordPress
  • About
  • Disclaimers
  • Contact

Category: Symfony

PHP / SQL / Symfony

symfony and doctrine: select distinct column

To select distinct column values from a table, there are a few things to note to make sure only distinct rows are returned. In /path/to/lib/model/doctrine/SomeTable.class.php:

Framework / Symfony

Upgraded Symfony and failed in sfCoreAutoload

One of the development projects was upgraded from Symfony V142 to the latest V144. My convention for the development is to symbolic link the symfony core files under lib/vendor directory. …

Symfony

Symfony: Hacking sfDoctrineActAsSignablePlugin to allow updated and created by specific user

I’m using sfDoctrineActAsSignablePlugin (V1.0.0) to audit record creation and updates. ie fields created_by and updated_by are automatically created and updated. This is perfect when running from browsers. But when running …

PHP / Symfony

Symfony and Doctrine: Keep the deleted record

In most of the projects I work on, when ‘deleting’ a record, it’s preferred to mark it as deleted than physically deleting the record. This makes re-instating a record easier. The common …

PHP / Symfony

Symfony: Customize admin generator filter

I want to create a yes / no choice field if a field is null or not. eg, a membership table with suspend_date field. I want to be able to filter list …

Posts navigation

Older posts

Follow me on Twitter

My Tweets

Recent Posts

  • PHP: SFTP with phpseclib and ssh key
  • Yii2: Auto-expand Parent Menu
  • Yii2: GridView inline editing with Editable Column
  • Yii2: Infinite scrolling with GridView and ListView
  • MsSQL: Find Foreign Key References

Categories

Archives

Tags

Addon Ajax apache autocomplete b2evo b2evolution css data database doctrine download export Firefox form Framework free grid htaccess HTML ie Image import Javascript jQuery linux MySQL page PHP plugin SMF SQL string Symfony text theme tool Ubuntu Unix URL user WordPress wp xajax Yii Yii2

© Copyright prettyscripts.com. All rights reserved.