Added many-to-many relationship between broducts and media
Updated php doc