Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 03 2017 20:53
    tejainece opened #101
  • Jun 03 2017 20:52
    tejainece closed #100
  • Jun 03 2017 20:41
    tejainece synchronize #100
  • Jun 03 2017 20:15
    tejainece opened #100
  • Jun 03 2017 19:46

    tejainece on master

    Merge pull request #25 from Jag… Jaguar 0.5.x primary changes Big step towards 0.5.0 and 1 more (compare)

  • Jun 03 2017 19:46
    tejainece closed #99
  • Jun 03 2017 18:18
    tejainece opened #99
  • Mar 09 2017 18:38
    tejainece closed #98
  • Mar 09 2017 18:38
    tejainece commented #98
  • Mar 04 2017 08:39
    tejainece opened #98
  • Mar 03 2017 15:43
    tejainece closed #95
  • Mar 03 2017 15:43
    tejainece commented #95
  • Feb 28 2017 17:00
    lejard-h assigned #97
  • Feb 28 2017 17:00
    lejard-h assigned #96
  • Feb 28 2017 17:00
    lejard-h opened #97
  • Feb 28 2017 17:00
    lejard-h opened #96
  • Feb 28 2017 16:58
    lejard-h closed #90
  • Feb 28 2017 16:58
    lejard-h commented #90
  • Feb 27 2017 21:39

    Kleak on master

    Version bump Merge pull request #24 from Jag… Added glob route matching witho… and 2 more (compare)

  • Feb 27 2017 21:39
    Kleak closed #92
Massimo Caroccia
@carmas123
or not?
Ravi Teja Gudapati
@tejainece
Jaguar assumes table creation
Massimo Caroccia
@carmas123
yes this is true
but it should not be mandatory
Ravi we can this preload into fromMap method
Ravi Teja Gudapati
@tejainece
What do you mean?
When you execute find* method with preload set to true
The codicilVA field will automatically preloaded.
Massimo Caroccia
@carmas123
I think that the best way is to have an async fromMap method
that can load the parent data
with an await execution
model.codiceIVA = adapter.parseValue(map['codiceIVA']);
model.codiceIVA = await CodiciIVA.findByKey(adapter.parseValue(map['codiceIVA']));
Ravi Teja Gudapati
@tejainece
Jaguar does not do joins
It makes multiple request
codiceIVA is not in original result
Massimo Caroccia
@carmas123
mm
yes
otherwise there is no option to sync load the reference table
Ravi Teja Gudapati
@tejainece
Do you mean atomic fetch?
Massimo Caroccia
@carmas123
yes
we need to read the codiciiva sync with generate Articoli class
Ron Gonzalez Lobo
@ronlobo
@tejainece Tagging new releases would be great, it would allow pinning/locking down vendor package for projects using jaguar in production.
Ravi Teja Gudapati
@tejainece
@ronlobo cant pub versions be used for this?
Ron Gonzalez Lobo
@ronlobo
You’re right, was conflating this with composer versioning
Ravi Teja Gudapati
@tejainece
:+1:
Ravi Teja Gudapati
@tejainece
@iambudi hotreload should work. I will test it and let you know
Ravi Teja Gudapati
@tejainece
@iambudi hotreload works now
Ravi Teja Gudapati
@tejainece
@iambudi I have added a wiki entry for hotreload: https://github.com/Jaguar-dart/jaguar/wiki/Hotreload
Jaumard
@jaumard
Hey @tejainece ! I need to order a request with and boolean AND in alphabetical order. Problem is that I can’t because when you put ascending to true it’s for all ordering not only one :/
is there a workaround for this ?
Ok be looking at the code this is working var find = bean.finder.orderBy(bean.isFavorite.name).orderBy(bean.description.name, true); :)
Sung-Chul Lee
@sclee15
How to log jaguar requests?
Ravi Teja Gudapati
@tejainece
@sclee15
  server.log.onRecord.listen(print);
  await server.serve(logRequests: true);
Rob Halff
@rhalff
I'm trying to use the orm and for every generated .jorm file I get this type error within the generated bean code:
error: '_ClubBean.fields' ('() → Map<String, dynamic>') isn't a valid override of 'Bean.fields' ('() → Map<String, Field<dynamic>>'). (invalid_override)
Do I somehow have a version mismatch between modules? I think I'm using the latest versions for every package though.
To me it seems the generated code doesn't implement Bean correctly.
Rob Halff
@rhalff
Nevermind seems using jaguar_serializer and jaguar_orm together results in a conflict.
Ravi Teja Gudapati
@tejainece
@rhalff can you get me a reproducable? Using serializer and orm together should not result in conflict
Rob Halff
@rhalff
@tejainece I think it'sField from jaguar_serializer which is conflicting with Field from jaguar_orm, I solved it by importing more concisely using show. So it's not necessarily a bug, just confusing when both packages are imported in full.
To reproduce it just import jaguar_serializer inside the same file where a bean is defined.
Rob Halff
@rhalff
The versions are 2.2.6 and 2.2.12, so the latest.
Ravi Teja Gudapati
@tejainece
Thanks. I will look into it
Rob Halff
@rhalff
I'm confused with the concept of <Model>.make() definition. what is make? is it a quick way of defining a constructor function? Why is it not preceded with a factory keyword? It's more of a dart question I guess.
I want to set a createdAt time for new models, but not sure where to do it. Nothing should be set from the default constructor right? because models also will get instantiated during finds etc.
Rob Halff
@rhalff
Is there any larger example project available using jaguar_orm? Each and every example seems to do things differently.
mbartnik
@mbartnik
hello, I have a weird problem with an id column being overwritten while upserting a row into different table, is this a good place to ask a support question?