Skip to content

Instantly share code, notes, and snippets.

View K-Phoen's full-sized avatar

Kévin Gomez K-Phoen

View GitHub Profile
[vagrant@vagrant-debian-squeeze:~/www/project on develop]
% ./app/console propel:model:build
PHP Fatal error: Class 'FOS\UserBundle\Propel\om\BaseUserQuery' not found in /home/vagrant/www/project/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Propel/UserQuery.php on line 17
PHP Stack trace:
PHP 1. {main}() /home/vagrant/www/project/app/console:0
PHP 2. Symfony\Component\Console\Application->run() /home/vagrant/www/project/app/console:22
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /home/vagrant/www/project/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:106
PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() /home/vagrant/www/project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
PHP 5. Symfony\Component\HttpKernel\Kernel->boot() /home/vagrant/www/project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:83
PHP 6. Symfony\Component\HttpKernel\Kernel->initi
<?php
class BookQuery extends BaseBookQuery
{
public function recent($nb_max = 5)
{
return $this
->orderByPublishedAt('desc')
->limit($nb_max);
}
; behaviors
propel.behavior.default = symfony,symfony_i18n
;propel.behavior.symfony.class = plugins.sfPropelPlugin.lib.behavior.SfPropelBehaviorSymfony
propel.behavior.symfony_i18n.class = plugins.sfPropelPlugin.lib.behavior.SfPropelBehaviorI18n
propel.behavior.symfony_i18n_translation.class = plugins.sfPropelPlugin.lib.behavior.SfPropelBehaviorI18nTranslation
propel.behavior.symfony_behaviors.class = plugins.sfPropelPlugin.lib.behavior.SfPropelBehaviorSymfonyBehaviors
propel.behavior.symfony_timestampable.class = plugins.sfPropelPlugin.lib.behavior.SfPropelBehaviorTimestampable
<?php
/**
* Base class that represents a row from the 'poc' table.
*
*
*
* This class was autogenerated by Propel 1.5.6 on:
*
Poc:
test:
message: Message
author: Kevin
plus: 12
minus: 1
created_at: 2011-10-10