Skip to content

Prettyscripts

Codes and scripts

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

Tag: doctrine

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:

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 …

jQuery / PHP / Symfony

Symfony: Doctrine version of autocompleter widget from sfFormExtraPlugin

Though it’s not yet formally documented (as this post is written) from sfFormExtraPlugin‘s readme page, there is doctrine version for autocomplete field called sfWidgetFormDoctrineJQueryAutocompleter included with the latest version of the plugin …

Symfony

Symfony and Doctrine: Default table collation, a better solution

As of symfony 1.4 and if working with doctrine, there are still problem setting default and correct table encoding and collations with symfony doctrine:build task. I have previously posted 2 …

Symfony

Symfony: sfDoctrineGuardPlugin and Customizing User Profile

sfDoctrineGuardPlugin provides basic authentication. sf_guard_user table only contains minimal fields to make this feature work. All other user relevant information such as name, birthday, contact numbers etc require a new …

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.