Site Archives symfony
[Symfony] retrieve fromArray function in baisc model
Once time I wanted to use fromArray function which had created in a model by default, but I can’t find it anywhere. At last I know the reason.
In config/propel.ini, normally it will display :
propel.addGenericAccessors = true
propel.addGenericMutators = true
But if you delete these, fromArray function will not be added when we create a […]
[Symfony] Propel Criteria Note
When we want to use a sql to get rows between two dates, we can use like this:
$crit1 = $c->getNewCriterion( AppEventPeer::CREATED_AT, $end, Criteria::LESS_THAN );
$crit2 = $c->getNewCriterion( AppEventPeer::CREATED_AT, $start, Criteria::GREATER_THAN );
$crit1->addAnd( $crit2 );
$c->add( $crit1 );
Find It Quickly
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.


