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:
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. After the upgrade, the browser displayed blank page with the following error logged: PHP Warning: sfCoreAutoload::require(/config/sfProjectConfiguration.class.php) [sfcoreautoload.require]: failed to open stream: No such file or…
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 as command line such as loading initial data (via symfony doc:build –all –and-load) or customized task to import data, the fields are set to null….
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 practice is to add a status field to every record. In doctrine, this can be done with SoftDelete.
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 of member who is or not suspended. In filter part of /path/to/application/module/config/generator.yml: