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 */

/** * * @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("userid", "IhardyUsers", "id" ); $this->belongsTo("carserialid", "IhardyCarserial", "id"); $this->belongsTo("regionid", "IhardyRegion", "regionid"); /* $this->hasManyToMany( "id", "IhardyUsers", "userid", "carserialid", "IhardyCarserial", "id" );*/ }

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



526

does anybody use phalcon2?



10.5k

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



526

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", "userid", "carserialid", "IhardyCarserial", "id" );*/ } public function columnMap() { return array( 'id' => 'id', 'userid' => 'userid', 'carserialid' => 'carserialid', 'flag' => 'flag', 'carsn' => 'carsn', 'madeyear' => 'madeyear', 'color' => 'color', 'position' => 'position', 'brief' => 'brief', 'provinceletter' => 'provinceletter', 'regionid' => 'regionid', 'lng'=>'lng', 'lat'=>'lat', ); }}