phalcon2 Column type does not support scale parameter

this is the model

<?php

class IhardyUserCar extends \Phalcon\Mvc\Model {

/*

  • @var integer */ public $id;

/*

  • @var integer */ public $user_id;

/*

  • @var integer */ public $carserial_id;

/*

  • @var string */ public $flag;

/*

  • @var string */ public $carsn;

/*

  • @var integer */ public $madeyear;

/*

  • @var string */ public $color;

/*

  • @var string */ public $position;

/*

/*

  • @var string */ public $brief;

/*

/*

  • @var string */ public $provinceletter;

/*

  • @var integer */ public $region_id;

/**

  • Independent Column Mapping. */

public $lng; public $lat; public function initialize() { $this->belongsTo("user_id", "IhardyUsers", "id" ); $this->belongsTo("carserial_id", "IhardyCarserial", "id"); $this->belongsTo("region_id", "IhardyRegion", "region_id"); / $this->hasManyToMany( "id", "IhardyUsers", "user_id", "carserial_id", "IhardyCarserial", "id" );/ }

public function columnMap() { return array( 'id' => 'id', 'user_id' => 'user_id', 'carserial_id' => 'carserial_id', 'flag' => 'flag', 'carsn' => 'carsn', 'madeyear' => 'madeyear', 'color' => 'color', 'position' => 'position', 'brief' => 'brief', 'provinceletter' => 'provinceletter', 'region_id' => 'region_id', 'lng'=>'lng', 'lat'=>'lat', ); } }



581

does anybody use phalcon2?



11.8k

can you use code bbcode , so I can try to duplicate your error



581

class IhardyUserCar extends \Phalcon\Mvc\Model{ / @var integer */ public $id; /* @var integer / public $user_id; / @var integer */ public $carserial_id; / @var string */ public $flag; /* @var string / public $carsn; / @var integer */ public $madeyear; / @var string */ public $color; /* @var string / public $position; / @var string */ / @var string */ public $brief; /* @var string / / @var string */ public $provinceletter; /* @var integer / public $region_id; /* Independent Column Mapping. / public $lng; public $lat; public function initialize() { $this->belongsTo("user_id", "IhardyUsers", "id" ); $this->belongsTo("carserial_id", "IhardyCarserial", "id"); $this->belongsTo("region_id", "IhardyRegion", "region_id"); / $this->hasManyToMany( "id", "IhardyUsers", "user_id", "carserial_id", "IhardyCarserial", "id" );*/ } public function columnMap() { return array( 'id' => 'id', 'user_id' => 'user_id', 'carserial_id' => 'carserial_id', 'flag' => 'flag', 'carsn' => 'carsn', 'madeyear' => 'madeyear', 'color' => 'color', 'position' => 'position', 'brief' => 'brief', 'provinceletter' => 'provinceletter', 'region_id' => 'region_id', 'lng'=>'lng', 'lat'=>'lat', ); }}