Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Sortable behaviour - wrong Peer classname #378

aurnot opened this Issue · 0 comments

2 participants


I have a class Field which is sortable.
When calling

$field->insertAtRank($rank); // $rank is a number lower than maxRank
// or
$field->insertAtTop(); // ... $field->save();

it fails and this error is thrown:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, 
class 'FieldPeer' not found in ***\Model\om\BaseField.php line 1750

The line refers to the following function

 * Execute queries that were saved to be run inside the save transaction
protected function processSortableQueries($con)
    foreach ($this->sortableQueries as $query) {
        $query['arguments'][]= $con;
        call_user_func_array($query['callable'], $query['arguments']);
    $this->sortableQueries = array();

It seems that the base class doesn't use the full path to the peer class :s

@rozwell rozwell referenced this issue from a commit in rozwell/Propel
@rozwell rozwell Applied fix #378 change for self::PEER 7e169b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.