Yii Models And Polygons


I am busy with a project using openlayers and yii.

I managed to create a polygon and tranfer the data to a controllers action.

But here is the problem.

How can i connect the data to my database model?

I have a column of type ‘POLYGON’ in my database, but i don’t know how to save the coordinate data using the model i have.


what DB are you using?


try to google "yii spatial"