Source: http://www.symfony-project.org/forum/index.php/m/51360/
The error I get is this:
>> propel generating form classes
Warning: constant(): Couldn't find constant MusicArtistPeer::CLASS_DEFAULT in
C:\AppServ\php5\PEAR\symfony\plugins\sfPropelPlugin\lib\propel\generator\sfPropelFormGenerator.class.php on line 106
Propel behavior "sfPropelActAsSluggableBehavior" is not registered
I'm using behaviors from the schema.yml
music_artist:
...
slug: { type: varchar(255) }
_behaviors:
sfPropelActAsSluggableBehavior:
columns: { from: artist_Name, to: slug }
So symfony create this file BaseMusicArtistBehaviors?.php:
<?php
sfPropelBehavior::add('MusicArtist', array (
'sfPropelActAsSluggableBehavior' =>
array (
'columns' =>
array (
'from' => 'artist_Name',
'to' => 'slug',
),
),
));
If I delete this file, them it create the form class for this model without any problem, but them in the next model with ANY behavior it will throw the same error and stop.
POSIBLE SOLUTION
If whe use the CLI symfony shouldn't call this
include_once 'lib/model/om/BaseMusicArtistBehaviors.php';
from the BaseMusicArtistPeer?.php