namespace Cubist\Backpack\app\Magic\Models;
-use Backpack\CRUD\CrudTrait;
use Cubist\Backpack\app\Magic\Fields\Field;
use Cubist\Backpack\app\Magic\Util;
use Cviebrock\EloquentSluggable\Sluggable;
class CubistMagicModelAbstract extends Model
{
use CubistMagicAttribute;
- use NestedModelTrait;
- use Sluggable, SluggableScopeHelpers;
+ use SluggableScopeHelpers;
+ use NestedModelTrait {
+ replicate as private replicateNodeTrait;
+ }
+ use Sluggable {
+ replicate as private replicateSluggable;
+ }
protected static $_doctrineTypesMapping = ['int' => 'integer'];
}
}
+ public function replicate(array $except = null)
+ {
+ $this->replicateNodeTrait($except);
+ $this->replicateSluggable($except);
+ }
+
public static function toDoctrineType($type)
{
if (isset(self::$_doctrineTypesMapping[$type])) {
}
return $type;
}
+
+
}