Skip to content

Instantly share code, notes, and snippets.

View fzaninotto's full-sized avatar

Francois Zaninotto fzaninotto

View GitHub Profile
@echo off
rem *********************************************************************
rem ** The Propel generator convenience script for Windows based systems
rem ** $Id$
rem *********************************************************************
rem This script will do the following:
rem - check for PHING_COMMAND env, if found, use it.
rem - if not found detect php, if found use it, otherwise err and terminate
<?php
/**
* Base class that represents a row from the 'user' table.
*
*
*
* @package propel.generator.many2many.om
*/
abstract class BaseUser extends BaseObject implements Persistent
<?php
// syntax 1: condition/combine
$books = PropelQuery::from('Book')
->condition('cond1', 'Book.Title = ?', 'War And Peace') // create a condition named 'cond1'
->condition('cond2', 'Book.Title LIKE ?', 'War%') // create a condition named 'cond2'
->combine(array('cond1', 'cond2'), 'or', 'cond12') // create a condition named 'cond12' from 'cond1' and 'cond2'
->condition('cond3', 'Book.PublishedAt <= ?', $end) // create a condition named 'cond3'
->condition('cond4', 'Book.PublishedAt >= ?', $begin) // create a condition named 'cond4'
->combine(array('cond3', 'cond4'), 'and', 'cond34') // create a condition named 'cond34' from 'cond3' and 'cond4'
->where(array('cond12', 'cond34'), 'and') // combine the two conditions in a where
Index: Y:/symfony/1.3/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
===================================================================
--- Y:/symfony/1.3/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php (revision 22519)
+++ Y:/symfony/1.3/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php (working copy)
@@ -44,7 +44,7 @@
$this->formatSql(htmlspecialchars($log, ENT_QUOTES, sfConfig::get('sf_charset')))
);
}
-
+