-- foreign key pointing to its parent 'InjuriesDetail', and does not
-- contain the list of 'xml_player_listings' (which get their own
-- table).
-- foreign key pointing to its parent 'InjuriesDetail', and does not
-- contain the list of 'xml_player_listings' (which get their own
-- table).
type Db InjuriesDetailListingXml = InjuriesDetailListing
instance FromXmlFk InjuriesDetailListingXml where
type Db InjuriesDetailListingXml = InjuriesDetailListing
instance FromXmlFk InjuriesDetailListingXml where
type Parent InjuriesDetailListingXml = InjuriesDetail
-- | Construct a 'InjuriesDetailListing' from a
type Parent InjuriesDetailListingXml = InjuriesDetail
-- | Construct a 'InjuriesDetailListing' from a
db_team_id = xml_team_id,
db_full_name = xml_full_name }
db_team_id = xml_team_id,
db_full_name = xml_full_name }
- -- | To convert between a 'InjuriesDetailListingPlayerListingXml'
- -- and a 'InjuriesDetailListingPlayerListingXml', we do nothing.
+ -- | To construct a 'InjuriesDetailListingPlayerListing' from a
+ -- 'InjuriesDetailListingPlayerListingXml' we need to supply a
+ -- foreign key to an 'InjuriesDetailListing'.
+ --
from_xml_fk fk InjuriesDetailListingPlayerListingXml{..} =
InjuriesDetailListingPlayerListing {
db_injuries_detail_listings_id = fk,
from_xml_fk fk InjuriesDetailListingPlayerListingXml{..} =
InjuriesDetailListingPlayerListing {
db_injuries_detail_listings_id = fk,
--- | This lets us call 'insert_xml' on a
--- 'InjuriesDetailListingPlayerListingXml' without having to
--- explicitly convert it to its database analogue first.
+-- | This lets us insert the XML representation
+-- 'InjuriesDetailListingPlayerListingXml' directly.