Yii Models And Polygons

Hello

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.

Thanks!

what DB are you using?

Mysql

try to google "yii spatial"

http://www.yiiframework.com/extensions/?tag=spatial