propelorm / PropelBundle

PropelBundle for Symfony.
http://propelorm.org/Propel/documentation/#working-with-symfony2
180 stars 156 forks source link

sluggable behavior: FatalThrowableError - Unsupported operand types #492

Closed icyevilfantasy closed 1 year ago

icyevilfantasy commented 6 years ago

i'm getting a FatalThrowableError through Unsupported operand types while using the sluggable behavior.

image

This error occurs only if i have duplicate titles, so that the behavior have to modify the slug with a number.

i'm using

image

my schema

image

problematic code in base class

at the end of protected function makeSlugUnique(...){ ... }

image

my temporary solution

image

dereuromark commented 1 year ago

All further dev and tickets should go into https://github.com/SkyFoxvn/PropelBundle as this will most likely be the follower of this now.