Hello,

While generating crud for model with sfPropelActAsNestedSetBehaviorPlugin on
I'm getting the following error:
*Quote:*
Propel behavior "actasnestedset" is not registered


I've followed the install instructions exactly.

i've read that symfony has a bug regarding this issue,
and i've tried the temporal patch with no sucess:

class Scorm extends BaseScorm
{
[...]

  /**
    * Correct of bug of symfony when using propel behaviors. As this bug is
    * corrected in the track of symfony, this function will be able to
be removed
    * in the future
    */
  public function __call($method, $parameters)
  {
    if (!$callable = sfMixer::getCallable('BaseScorm:'.$method))
    {
      throw new sfException(sprintf('Call to undefined method
BaseScorm::%s', $method));
    }
    array_unshift($parameters, $this);

    return call_user_func_array($callable, $parameters);
  }
}

/**
  * Add properties for sfPropelActAsNestedSetBehaviourPlugin
  *
  */
$columns_map = array(
  'left'   => ScormPeer::LFT,
  'right'  => ScormPeer::RGT,
  'parent' => ScormPeer::PARENT_ID,
  'scope'  => ScormPeer::SCOPE,
);

sfPropelBehavior::add('Scorm', array('actasnestedset' =>
array('columns' => $columns_map)));

I've tried it but i continue recieving the same error:
"Propel behavior "actasnestedset" is not registered"

my code is this:

"<?php

/**
 * Subclass for representing a row from the 'categoria' table.
 *
 *
 *
 * @package lib.model
 */
class Categoria extends BaseCategoria
{

    /**
    * Correct of bug of symfony when using propel behaviors. As this bug is
    * corrected in the track of symfony, this function will be able to be
removed
    * in the future
    */
  public function __call($method, $parameters)
  {
    if (!$callable = sfMixer::getCallable('BaseCategoria:'.$method))
    {
      throw new sfException(sprintf('Call to undefined method
BaseCategoria::%s', $method));
    }
    array_unshift($parameters, $this);

    return call_user_func_array($callable, $parameters);
  }
}




$columns_map = array('left'   => CategoriaPeer::TREE_LEFT,
                           'right'  => CategoriaPeer::TREE_RIGHT,
                           'parent' => CategoriaPeer::TREE_PARENT,
                           'scope'  => CategoriaPeer::TOPIC_ID);

sfPropelBehavior::add('Categoria', array('actasnestedset' => array('columns'
=> $columns_map)));
"
Any idea?
something wrong? how can i upgrade symfony to latest version (i'm on 1.0) as
far as i know there is a trunk that solve the problem.
Thanks in advance!
-- 
        - Oriol Mercadé Figueras

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to