in reply to Re: Class::DBI global questions and references (partly explained, waiting for more ;)
in thread Class::DBI global questions and references

Hey thanx, this ok somehow i got it after so much trying arround.... so the references are working now,
i can select and display stuff... but this brings me to another problem now -> what about the updating of records?

if i have one three tables and they are referenced between, how do i put and assign
values to each of them?

1. i should make ->create() for each table and pass the right values?
2. there is some way to send values to one ->create() (and all referenced tables are updated)?
3. or there is some magical thing which does everything by itself (in the middle_ref table to save the last
inserted ids from other two tables?)
4. and if this magical thing is real, is there a difference in syntax for creating
records in the database if tables are referenced on diferent way (has_a or has_many)?

and parasew thanx for the mysql /log thing ! this is very handy for developement,
you can see exactly what queries are going inside and traceroute some mistakes :)
very handy this should be placed as troubleshooting trick in the
manual :)

thanx
ile
  • Comment on Re: Re: Class::DBI global questions and references (partly explained, waiting for more ;)