because one table have many records.
i spilt the table as month (date).
one month one table.
such as table named notes.
tables is:
notes notes_201303 notes_201304
in model class i defined the model class like this:
class Notes extends Model {
public function initialize () {.....}
public function getSource() {
return 'pre_notes';
}
}
now,i can't use the model class in project . because the model method getSource defined the db table.
how can define the model db table dynamic? or have other method resloved the question ? except use the Phalcon\Db