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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.