Search the web
Sign In
New User? Sign Up
metal-dev · MetaL Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 524 - 553 of 553   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
524
Hello, I was wondering how can i solve the creation of 2 objects with an 1- to-1 relationship. Using this example class: <class> <name>user</name> <variable> ...
Miguel Oliveira
miguel@...
Send Email
Feb 21, 2008
2:31 pm
525
Hello, ... Yes, you need to make those variables optional to be allowed to save the object without setting them to a reference object. Since the classes...
Manuel Lemos
mallemos
Offline Send Email
Feb 21, 2008
8:06 pm
526
Hello, My application, metastorage-based, is growing every day, and the main persistent component is getting bigger. In order do organize code and data flow,...
Miguel Oliveira
miguel@...
Send Email
Mar 13, 2008
12:28 pm
527
Hello, ... No, Metastorage generates different schema definitions for each component, but you can configure the schema installation classes to install all...
Manuel Lemos
mallemos
Offline Send Email
Mar 15, 2008
9:40 am
528
Hello, Manuael and everybody, I have the question regarding how to set up classes relationship. I'm designing the system that must provide to end user the...
Sergey Klenin
scleann@...
Send Email
Apr 21, 2008
6:08 pm
529
Hello, ... This is a bit confusing, not because of your definitions, but rather because you do not tell me what exactly what you want to do and you are not...
Manuel Lemos
mallemos
Offline Send Email
Apr 21, 2008
10:41 pm
530
Are there tools to convert PHP/Perl/Python/etc to Metal? When I see: function addargs ($x,$y) {$z=$x+y; return $z;} I think (using brackets because some mail...
Kelly Jones
kelly.terry.jones@...
Send Email
May 24, 2008
9:34 pm
531
Hello, ... AFAIK there are no tools for converting between languages. It is a possibility, but the MetaL project did not went into that direction. Nowadays,...
Manuel Lemos
mallemos
Offline Send Email
May 28, 2008
7:13 am
532
I'm new to Metastorage, so forgive me if I've overlooked something obvious. Anyhow, I can't get my persist function to work reliably. I've using the same...
nixanz
Offline Send Email
Sep 19, 2008
4:18 am
533
Hello, ... If the variable can be set to NULL, it means it is optional. Are you defining it as <optional>1</optional> ? The generated class should fail the...
Manuel Lemos
mallemos
Offline Send Email
Sep 19, 2008
4:24 am
534
it is optional: ... <variable> <name>grams</name> <type>integer</type> <optional>1</optional> </variable> ... It is being assigned immediately before the...
Nik Sands
nixanz
Offline Send Email
Sep 19, 2008
4:33 am
535
Hello, ... That is the problem. If it is empty, don't assign it or set it to null . -- Regards, Manuel Lemos Find and post PHP jobs ...
Manuel Lemos
mallemos
Offline Send Email
Sep 19, 2008
4:35 am
536
I thought metastorage was supposed to set it to NULL when generating the SQL automatically? The debug output shows it as being a '?' in the prepared query, but...
Nik Sands
nixanz
Offline Send Email
Sep 19, 2008
4:48 am
537
Sorry, my last email was probably not very clear. Let me try again... :-) The code immediately below fails to save (and gives the debug output shown below),...
Nik Sands
nixanz
Offline Send Email
Sep 19, 2008
5:01 am
538
Hello, ... I think there is some confusion. An empty string is one thing. An undefined value is another thing. ... The above should be: if(strlen($grams)) ... ...
Manuel Lemos
mallemos
Offline Send Email
Sep 19, 2008
6:23 am
539
Hi Manuel, Thanks for your help... Is metastorage NOT supposed to replace this with a NULL in the SQL in this case? Is metastorage SUPPOSED to produce invalid...
Nik Sands
nixanz
Offline Send Email
Sep 19, 2008
7:25 am
540
Hello, ... I am not sure what you mean. The code generate by Metastorage sets the field to NULL if you set the respective optional variable to null or just not...
Manuel Lemos
mallemos
Offline Send Email
Sep 19, 2008
7:47 am
541
but in the situation I showed in my last example, it produces invalid SQL. Shouldn't this be avoided, no matter what the value of the variable? Metastorage...
Nik Sands
nixanz
Offline Send Email
Sep 19, 2008
9:39 am
542
Hello, ... ? in the prepared query is just a place holder that will be placed by the real value when the query is executed. If the variable is set to a value,...
Manuel Lemos
mallemos
Offline Send Email
Sep 19, 2008
8:44 pm
543
Hi Manuel, Thanks for looking at this for me. The class definition is attached to this email. The '?' is not getting replaced by a value, or by NULL, which is...
Nik Sands
nixanz
Offline Send Email
Sep 19, 2008
10:25 pm
544
Hello, ... It seems not file was attached to the message. Can you paste the class definition so I can try to reproduce your problem? -- Regards, Manuel Lemos ...
Manuel Lemos
mallemos
Offline Send Email
Sep 19, 2008
10:42 pm
545
oops, sorry, I'll try again (and copy/paste as well)... <class> <name>inventory_item</name> <variable> <name>notes</name> <type>text</type> ...
Nik Sands
nixanz
Offline Send Email
Sep 19, 2008
10:52 pm
546
Hello, ... I generated the code of the class and it is correct. If you set the grams variable to null or unset it, it will be set a NULL on the database...
Manuel Lemos
mallemos
Offline Send Email
Sep 20, 2008
1:45 am
547
But you said that a '?' in a PrepareQuery should be converted to either an SQL NULL, or to a valid value in the actual Query. This is not happening in this...
Nik Sands
nixanz
Offline Send Email
Sep 20, 2008
4:11 am
548
Hello, ... If you look at the generated code you can see this for setting the prepared query parameter of the grams field. if(IsSet($this->grams)) { ...
Manuel Lemos
mallemos
Offline Send Email
Sep 20, 2008
4:51 am
549
Good idea. :-) Below is the last few lines of the var_dump($inventory_item) output. To my inexperienced eye, it appears that it has the value of an empty ...
Nik Sands
nixanz
Offline Send Email
Sep 20, 2008
5:13 am
550
Hello ... As you may see the grams variable is set to an empty string "" and not null as it should be. Now you need to check your code to figure why it is not...
Manuel Lemos
mallemos
Offline Send Email
Sep 20, 2008
5:16 am
551
I already know why it is being set to an empty string: That is simply what has been stored by the formsgeneration class that I'm using. I would have expected...
Nik Sands
nixanz
Offline Send Email
Sep 20, 2008
5:20 am
552
Hi! I'm using the latest snapshot of Metastorage. The generated code doesn't contain function named MetabaseCreateLOB(). So the bug is probably in generation...
m4r6u5
Offline Send Email
Nov 16, 2008
10:24 pm
553
Hello, ... You need to include metabase_lob.php to access objects with large data fields. -- Regards, Manuel Lemos Find and post PHP jobs ...
Manuel Lemos
mallemos
Offline Send Email
Nov 16, 2008
11:48 pm
Messages 524 - 553 of 553   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help