Louay Akkad

Results 54 comments of Louay Akkad

Just found a way to do it. ``` orm.define('city', { id: { type: 'text', required: true, size: 100, // important or relationships won't work }, name: String, }, { id:...

Oh, so `key` stands for PK? I didn't know that. It worked. Thanks. It generates the table correctly, but we shouldn't really need the `size` property.

Doesn't it mean that the issue is that `association.model.id` (or maybe `association.field`) is incorrectly set? I'm not sure what `mapsTo` stands for.

Personally I believe that `ember-data` relationships are a mess. I have switched to using a computed property instead. So for each relationship I have two model attributes: `relatedModelId` and `relatedModel`,...

That's nice! I'll give it a try next time.

Use-cases for this: - When changing a `User`'s password, I want to remove all `Sessions` linked to that user. - When creating a new `Session`, I want to remove all...

I understand what you mean, but to be honest, I feel this is what hooks are supposed to do. All the major ORMs are allowing async hooks. node-orm, mongoose and...

Anyway, I guess this issue is about accessing core which is kind of irrelevant to async hooks, so let's continue this discussion in #19.

So yesterday I did create a patch to solve this issue, but I wasn't able to. You'll always end up with a circular dependency. (Not that it's not working, but...