nextras / orm

Orm with clean object design, smart relationship loading and powerful collections.
https://nextras.org/orm
MIT License
310 stars 57 forks source link

Typo in AnnotationParser #155

Closed Hologos closed 8 years ago

Hologos commented 8 years ago

There is a typo in AnnotationParser on lines 262 and 270 in v1.1.

throw new InvalidStateException("Relationship in {$this->currentReflection->name}::\${$propertyMetadata->name} points to UKNONW entity.");

I found it while debbuging. I was getting this Exception because I used only a single colon instead of double colon in relationship definition. Adding additional check would be great.

hrach commented 8 years ago

Thank you for the bugreport. I will try to add an additional check.

pryznar commented 8 years ago

@Hologos AnnotaionParser was replaced by MetadataParser @hrach more similar typos :) https://github.com/nextras/orm/search?utf8=%E2%9C%93&q=uknown

hrach commented 8 years ago

Obviously too many "n" for me :-´)