├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── composer.json ├── doc ├── annotations.md ├── blameable.md ├── ip_traceable.md ├── loggable.md ├── mapping.md ├── reference_integrity.md ├── references.md ├── sluggable.md ├── softdeleteable.md ├── sortable.md ├── symfony2.md ├── timestampable.md ├── transaction-safety.md ├── translatable.md ├── tree.md ├── uploadable.md └── zendframework2.md ├── example ├── app │ └── Entity │ │ ├── Category.php │ │ ├── CategoryTranslation.php │ │ └── Repository │ │ └── CategoryRepository.php ├── bin │ ├── console │ └── console.php ├── em.php └── run.php ├── lib └── Gedmo │ ├── Blameable │ ├── Blameable.php │ ├── BlameableListener.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ └── Event │ │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ │ └── BlameableAdapter.php │ └── Traits │ │ ├── Blameable.php │ │ ├── BlameableDocument.php │ │ └── BlameableEntity.php │ ├── DoctrineExtensions.php │ ├── Exception.php │ ├── Exception │ ├── BadMethodCallException.php │ ├── FeatureNotImplementedException.php │ ├── InvalidArgumentException.php │ ├── InvalidMappingException.php │ ├── ReferenceIntegrityStrictException.php │ ├── RuntimeException.php │ ├── TreeLockingException.php │ ├── UnexpectedValueException.php │ ├── UnsupportedObjectManagerException.php │ ├── UploadableCantWriteException.php │ ├── UploadableCouldntGuessMimeTypeException.php │ ├── UploadableDirectoryNotFoundException.php │ ├── UploadableException.php │ ├── UploadableExtensionException.php │ ├── UploadableFileAlreadyExistsException.php │ ├── UploadableFileNotReadableException.php │ ├── UploadableFormSizeException.php │ ├── UploadableIniSizeException.php │ ├── UploadableInvalidFileException.php │ ├── UploadableInvalidMimeTypeException.php │ ├── UploadableInvalidPathException.php │ ├── UploadableMaxSizeException.php │ ├── UploadableNoFileException.php │ ├── UploadableNoPathDefinedException.php │ ├── UploadableNoTmpDirException.php │ ├── UploadablePartialException.php │ └── UploadableUploadException.php │ ├── IpTraceable │ ├── IpTraceable.php │ ├── IpTraceableListener.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ └── Event │ │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ │ └── IpTraceableAdapter.php │ └── Traits │ │ ├── IpTraceable.php │ │ ├── IpTraceableDocument.php │ │ └── IpTraceableEntity.php │ ├── Loggable │ ├── Document │ │ ├── LogEntry.php │ │ ├── MappedSuperclass │ │ │ └── AbstractLogEntry.php │ │ └── Repository │ │ │ └── LogEntryRepository.php │ ├── Entity │ │ ├── LogEntry.php │ │ ├── MappedSuperclass │ │ │ └── AbstractLogEntry.php │ │ └── Repository │ │ │ └── LogEntryRepository.php │ ├── Loggable.php │ ├── LoggableListener.php │ └── Mapping │ │ ├── Driver │ │ ├── Annotation.php │ │ ├── Xml.php │ │ └── Yaml.php │ │ └── Event │ │ ├── Adapter │ │ ├── ODM.php │ │ └── ORM.php │ │ └── LoggableAdapter.php │ ├── Mapping │ ├── Annotation │ │ ├── All.php │ │ ├── Blameable.php │ │ ├── IpTraceable.php │ │ ├── Language.php │ │ ├── Locale.php │ │ ├── Loggable.php │ │ ├── Reference.php │ │ ├── ReferenceIntegrity.php │ │ ├── ReferenceMany.php │ │ ├── ReferenceManyEmbed.php │ │ ├── ReferenceOne.php │ │ ├── Slug.php │ │ ├── SlugHandler.php │ │ ├── SlugHandlerOption.php │ │ ├── SoftDeleteable.php │ │ ├── SortableGroup.php │ │ ├── SortablePosition.php │ │ ├── Timestampable.php │ │ ├── Translatable.php │ │ ├── TranslationEntity.php │ │ ├── Tree.php │ │ ├── TreeClosure.php │ │ ├── TreeLeft.php │ │ ├── TreeLevel.php │ │ ├── TreeLockTime.php │ │ ├── TreeParent.php │ │ ├── TreePath.php │ │ ├── TreePathHash.php │ │ ├── TreePathSource.php │ │ ├── TreeRight.php │ │ ├── TreeRoot.php │ │ ├── Uploadable.php │ │ ├── UploadableFileMimeType.php │ │ ├── UploadableFileName.php │ │ ├── UploadableFilePath.php │ │ ├── UploadableFileSize.php │ │ └── Versioned.php │ ├── Driver.php │ ├── Driver │ │ ├── AbstractAnnotationDriver.php │ │ ├── AnnotationDriverInterface.php │ │ ├── Chain.php │ │ ├── File.php │ │ └── Xml.php │ ├── Event │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ └── AdapterInterface.php │ ├── ExtensionMetadataFactory.php │ └── MappedEventSubscriber.php │ ├── ReferenceIntegrity │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ └── Yaml.php │ │ └── Validator.php │ ├── ReferenceIntegrity.php │ └── ReferenceIntegrityListener.php │ ├── References │ ├── LazyCollection.php │ ├── Mapping │ │ ├── Driver │ │ │ └── Annotation.php │ │ └── Event │ │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ │ └── ReferencesAdapter.php │ └── ReferencesListener.php │ ├── Sluggable │ ├── Handler │ │ ├── InversedRelativeSlugHandler.php │ │ ├── RelativeSlugHandler.php │ │ ├── SlugHandlerInterface.php │ │ └── TreeSlugHandler.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ └── Event │ │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ │ └── SluggableAdapter.php │ ├── Sluggable.php │ ├── SluggableListener.php │ └── Util │ │ └── Urlizer.php │ ├── SoftDeleteable │ ├── Filter │ │ ├── ODM │ │ │ └── SoftDeleteableFilter.php │ │ └── SoftDeleteableFilter.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ ├── Event │ │ │ ├── Adapter │ │ │ │ └── ORM.php │ │ │ └── SoftDeleteableAdapter.php │ │ └── Validator.php │ ├── Query │ │ └── TreeWalker │ │ │ ├── Exec │ │ │ └── MultiTableDeleteExecutor.php │ │ │ └── SoftDeleteableWalker.php │ ├── SoftDeleteable.php │ ├── SoftDeleteableListener.php │ └── Traits │ │ ├── SoftDeleteable.php │ │ ├── SoftDeleteableDocument.php │ │ └── SoftDeleteableEntity.php │ ├── Sortable │ ├── Entity │ │ └── Repository │ │ │ └── SortableRepository.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ └── Event │ │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ │ └── SortableAdapter.php │ ├── Sortable.php │ └── SortableListener.php │ ├── Timestampable │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ └── Event │ │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ │ └── TimestampableAdapter.php │ ├── Timestampable.php │ ├── TimestampableListener.php │ └── Traits │ │ ├── Timestampable.php │ │ ├── TimestampableDocument.php │ │ └── TimestampableEntity.php │ ├── Tool │ ├── Logging │ │ └── DBAL │ │ │ └── QueryAnalyzer.php │ ├── Wrapper │ │ ├── AbstractWrapper.php │ │ ├── EntityWrapper.php │ │ └── MongoDocumentWrapper.php │ └── WrapperInterface.php │ ├── Translatable │ ├── Document │ │ ├── MappedSuperclass │ │ │ ├── AbstractPersonalTranslation.php │ │ │ └── AbstractTranslation.php │ │ ├── Repository │ │ │ └── TranslationRepository.php │ │ └── Translation.php │ ├── Entity │ │ ├── MappedSuperclass │ │ │ ├── AbstractPersonalTranslation.php │ │ │ └── AbstractTranslation.php │ │ ├── Repository │ │ │ └── TranslationRepository.php │ │ └── Translation.php │ ├── Hydrator │ │ └── ORM │ │ │ ├── ObjectHydrator.php │ │ │ └── SimpleObjectHydrator.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ └── Event │ │ │ ├── Adapter │ │ │ ├── ODM.php │ │ │ └── ORM.php │ │ │ └── TranslatableAdapter.php │ ├── Query │ │ └── TreeWalker │ │ │ └── TranslationWalker.php │ ├── Translatable.php │ └── TranslatableListener.php │ ├── Translator │ ├── Document │ │ └── Translation.php │ ├── Entity │ │ └── Translation.php │ ├── Translation.php │ ├── TranslationInterface.php │ └── TranslationProxy.php │ ├── Tree │ ├── Document │ │ └── MongoDB │ │ │ └── Repository │ │ │ ├── AbstractTreeRepository.php │ │ │ └── MaterializedPathRepository.php │ ├── Entity │ │ ├── MappedSuperclass │ │ │ └── AbstractClosure.php │ │ └── Repository │ │ │ ├── AbstractTreeRepository.php │ │ │ ├── ClosureTreeRepository.php │ │ │ ├── MaterializedPathRepository.php │ │ │ └── NestedTreeRepository.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Annotation.php │ │ │ ├── Xml.php │ │ │ └── Yaml.php │ │ ├── Event │ │ │ ├── Adapter │ │ │ │ ├── ODM.php │ │ │ │ └── ORM.php │ │ │ └── TreeAdapter.php │ │ └── Validator.php │ ├── Node.php │ ├── RepositoryInterface.php │ ├── RepositoryUtils.php │ ├── RepositoryUtilsInterface.php │ ├── Strategy.php │ ├── Strategy │ │ ├── AbstractMaterializedPath.php │ │ ├── ODM │ │ │ └── MongoDB │ │ │ │ └── MaterializedPath.php │ │ └── ORM │ │ │ ├── Closure.php │ │ │ ├── MaterializedPath.php │ │ │ └── Nested.php │ ├── Traits │ │ ├── MaterializedPath.php │ │ ├── NestedSet.php │ │ └── NestedSetEntity.php │ └── TreeListener.php │ └── Uploadable │ ├── Event │ ├── UploadableBaseEventArgs.php │ ├── UploadablePostFileProcessEventArgs.php │ └── UploadablePreFileProcessEventArgs.php │ ├── Events.php │ ├── FileInfo │ ├── FileInfoArray.php │ └── FileInfoInterface.php │ ├── FilenameGenerator │ ├── FilenameGeneratorAlphanumeric.php │ ├── FilenameGeneratorInterface.php │ └── FilenameGeneratorSha1.php │ ├── Mapping │ ├── Driver │ │ ├── Annotation.php │ │ ├── Xml.php │ │ └── Yaml.php │ └── Validator.php │ ├── MimeType │ ├── MimeTypeGuesser.php │ ├── MimeTypeGuesserInterface.php │ └── MimeTypesExtensionsMap.php │ ├── Uploadable.php │ └── UploadableListener.php ├── schemas └── orm │ ├── doctrine-extensions-mapping-2-1.xsd │ └── doctrine-extensions-mapping-2-2.xsd ├── tests ├── Gedmo │ ├── Blameable │ │ ├── BlameableDocumentTest.php │ │ ├── BlameableTest.php │ │ ├── ChangeTest.php │ │ ├── Fixture │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ ├── Type.php │ │ │ │ └── User.php │ │ │ └── Entity │ │ │ │ ├── Article.php │ │ │ │ ├── Comment.php │ │ │ │ ├── MappedSupperClass.php │ │ │ │ ├── SupperClassExtension.php │ │ │ │ ├── TitledArticle.php │ │ │ │ ├── Type.php │ │ │ │ ├── UsingTrait.php │ │ │ │ └── WithoutInterface.php │ │ ├── NoInterfaceTest.php │ │ ├── NoUserTest.php │ │ ├── ProtectedPropertySupperclassTest.php │ │ └── TraitUsageTest.php │ ├── IpTraceable │ │ ├── ChangeTest.php │ │ ├── Fixture │ │ │ ├── Article.php │ │ │ ├── Comment.php │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ └── Type.php │ │ │ ├── MappedSupperClass.php │ │ │ ├── SupperClassExtension.php │ │ │ ├── TitledArticle.php │ │ │ ├── Type.php │ │ │ ├── UsingTrait.php │ │ │ └── WithoutInterface.php │ │ ├── IpTraceableDocumentTest.php │ │ ├── IpTraceableTest.php │ │ ├── NoInterfaceTest.php │ │ └── TraitUsageTest.php │ ├── Loggable │ │ ├── Fixture │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ ├── Author.php │ │ │ │ ├── Comment.php │ │ │ │ ├── Log │ │ │ │ │ └── Comment.php │ │ │ │ └── RelatedArticle.php │ │ │ └── Entity │ │ │ │ ├── Article.php │ │ │ │ ├── Comment.php │ │ │ │ ├── Log │ │ │ │ └── Comment.php │ │ │ │ └── RelatedArticle.php │ │ ├── LoggableDocumentTest.php │ │ └── LoggableEntityTest.php │ ├── Mapping │ │ ├── Driver │ │ │ ├── Xml │ │ │ │ ├── Mapping.Fixture.Xml.ClosureTree.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.Loggable.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.MaterializedPathTree.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.NestedTree.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.Sluggable.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.SoftDeleteable.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.Sortable.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.Status.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.Timestampable.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.Translatable.dcm.xml │ │ │ │ ├── Mapping.Fixture.Xml.Uploadable.dcm.xml │ │ │ │ ├── Status.orm.xml │ │ │ │ └── Timestampable.orm.xml │ │ │ └── Yaml │ │ │ │ ├── Mapping.Fixture.Yaml.BaseCategory.dcm.yml │ │ │ │ ├── Mapping.Fixture.Yaml.Category.dcm.yml │ │ │ │ ├── Mapping.Fixture.Yaml.ClosureCategory.dcm.yml │ │ │ │ ├── Mapping.Fixture.Yaml.MaterializedPathCategory.dcm.yml │ │ │ │ ├── Mapping.Fixture.Yaml.SoftDeleteable.dcm.yml │ │ │ │ ├── Mapping.Fixture.Yaml.Sortable.dcm.yml │ │ │ │ ├── Mapping.Fixture.Yaml.Uploadable.dcm.yml │ │ │ │ └── Mapping.Fixture.Yaml.User.dcm.yml │ │ ├── ExtensionODMTest.php │ │ ├── ExtensionORMTest.php │ │ ├── Fixture │ │ │ ├── ClosureTreeClosure.php │ │ │ ├── Compatibility │ │ │ │ └── Article.php │ │ │ ├── Document │ │ │ │ └── User.php │ │ │ ├── Sluggable.php │ │ │ ├── SoftDeleteable.php │ │ │ ├── SortableGroup.php │ │ │ ├── Unmapped │ │ │ │ └── Timestampable.php │ │ │ ├── User.php │ │ │ ├── Xml │ │ │ │ ├── ClosureTree.php │ │ │ │ ├── Loggable.php │ │ │ │ ├── MaterializedPathTree.php │ │ │ │ ├── NestedTree.php │ │ │ │ ├── Sluggable.php │ │ │ │ ├── SoftDeleteable.php │ │ │ │ ├── Sortable.php │ │ │ │ ├── Status.php │ │ │ │ ├── Timestampable.php │ │ │ │ ├── Translatable.php │ │ │ │ └── Uploadable.php │ │ │ └── Yaml │ │ │ │ ├── BaseCategory.php │ │ │ │ ├── Category.php │ │ │ │ ├── ClosureCategory.php │ │ │ │ ├── MaterializedPathCategory.php │ │ │ │ ├── SoftDeleteable.php │ │ │ │ ├── Sortable.php │ │ │ │ ├── Uploadable.php │ │ │ │ └── User.php │ │ ├── LoggableMappingTest.php │ │ ├── MappingEventAdapterTest.php │ │ ├── MappingTest.php │ │ ├── MetadataFactory │ │ │ ├── CustomDriverTest.php │ │ │ └── ForcedMetadataTest.php │ │ ├── Mock │ │ │ ├── EventSubscriberCustomMock.php │ │ │ ├── EventSubscriberMock.php │ │ │ ├── Extension │ │ │ │ └── Encoder │ │ │ │ │ ├── EncoderListener.php │ │ │ │ │ └── Mapping │ │ │ │ │ ├── Annotations.php │ │ │ │ │ ├── Driver │ │ │ │ │ └── Annotation.php │ │ │ │ │ └── Event │ │ │ │ │ └── Adapter │ │ │ │ │ ├── ODM.php │ │ │ │ │ └── ORM.php │ │ │ └── Mapping │ │ │ │ └── Event │ │ │ │ └── Adapter │ │ │ │ └── ORM.php │ │ ├── MultiManagerMappingTest.php │ │ ├── SluggableMappingTest.php │ │ ├── SoftDeleteableMappingTest.php │ │ ├── SortableMappingTest.php │ │ ├── TimestampableMappingTest.php │ │ ├── TranslatableMappingTest.php │ │ ├── TreeMappingTest.php │ │ ├── UploadableMappingTest.php │ │ └── Xml │ │ │ ├── ClosureTreeMappingTest.php │ │ │ ├── LoggableMappingTest.php │ │ │ ├── MaterializedPathTreeMappingTest.php │ │ │ ├── NestedTreeMappingTest.php │ │ │ ├── Simplified │ │ │ └── TimestampableMappingTest.php │ │ │ ├── SluggableMappingTest.php │ │ │ ├── SoftDeleteableMappingTest.php │ │ │ ├── SortableMappingTest.php │ │ │ ├── TimestampableMappingTest.php │ │ │ ├── TranslatableMappingTest.php │ │ │ └── UploadableMappingTest.php │ ├── ReferenceIntegrity │ │ ├── Fixture │ │ │ └── Document │ │ │ │ ├── ManyNullify │ │ │ │ ├── Article.php │ │ │ │ └── Type.php │ │ │ │ ├── ManyRestrict │ │ │ │ ├── Article.php │ │ │ │ └── Type.php │ │ │ │ ├── OneNullify │ │ │ │ ├── Article.php │ │ │ │ └── Type.php │ │ │ │ └── OneRestrict │ │ │ │ ├── Article.php │ │ │ │ └── Type.php │ │ └── ReferenceIntegrityDocumentTest.php │ ├── References │ │ ├── Fixture │ │ │ ├── ODM │ │ │ │ └── MongoDB │ │ │ │ │ ├── Metadata.php │ │ │ │ │ └── Product.php │ │ │ └── ORM │ │ │ │ ├── Category.php │ │ │ │ └── StockItem.php │ │ └── ReferencesListenerTest.php │ ├── Sluggable │ │ ├── AnnotationValidationTest.php │ │ ├── CustomTransliteratorTest.php │ │ ├── Fixture │ │ │ ├── Article.php │ │ │ ├── Comment.php │ │ │ ├── ConfigurationArticle.php │ │ │ ├── Doctrine │ │ │ │ └── FakeFilter.php │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ └── Handler │ │ │ │ │ ├── Article.php │ │ │ │ │ ├── RelativeSlug.php │ │ │ │ │ └── TreeSlug.php │ │ │ ├── Handler │ │ │ │ ├── Article.php │ │ │ │ ├── ArticleRelativeSlug.php │ │ │ │ ├── Company.php │ │ │ │ ├── People │ │ │ │ │ ├── Occupation.php │ │ │ │ │ └── Person.php │ │ │ │ ├── TreeSlug.php │ │ │ │ ├── TreeSlugPrefixSuffix.php │ │ │ │ └── User.php │ │ │ ├── Identifier.php │ │ │ ├── Inheritance │ │ │ │ ├── Car.php │ │ │ │ └── Vehicle.php │ │ │ ├── Inheritance2 │ │ │ │ ├── Car.php │ │ │ │ ├── SportCar.php │ │ │ │ └── Vehicle.php │ │ │ ├── Issue104 │ │ │ │ ├── Bus.php │ │ │ │ ├── Car.php │ │ │ │ ├── Icarus.php │ │ │ │ └── Vehicle.php │ │ │ ├── Issue1151 │ │ │ │ └── Article.php │ │ │ ├── Issue116 │ │ │ │ ├── Country.php │ │ │ │ └── Mapping │ │ │ │ │ └── Sluggable.Fixture.Issue116.Country.dcm.yml │ │ │ ├── Issue131 │ │ │ │ └── Article.php │ │ │ ├── Issue449 │ │ │ │ └── Article.php │ │ │ ├── Issue633 │ │ │ │ └── Article.php │ │ │ ├── Issue827 │ │ │ │ ├── Article.php │ │ │ │ ├── Category.php │ │ │ │ ├── Comment.php │ │ │ │ └── Post.php │ │ │ ├── Issue939 │ │ │ │ ├── Article.php │ │ │ │ ├── Category.php │ │ │ │ └── SluggableListener.php │ │ │ ├── MappedSuperclass │ │ │ │ ├── Car.php │ │ │ │ └── Vehicle.php │ │ │ ├── Page.php │ │ │ ├── Position.php │ │ │ ├── Prefix.php │ │ │ ├── PrefixWithTreeHandler.php │ │ │ ├── Suffix.php │ │ │ ├── SuffixWithTreeHandler.php │ │ │ ├── TransArticleManySlug.php │ │ │ ├── TranslatableArticle.php │ │ │ └── Validate.php │ │ ├── Handlers │ │ │ ├── BothSlugHandlerTest.php │ │ │ ├── RelativeSlugHandlerDocumentTest.php │ │ │ ├── RelativeSlugHandlerTest.php │ │ │ ├── TreeSlugHandlerDocumentTest.php │ │ │ ├── TreeSlugHandlerPrefixSuffixTest.php │ │ │ ├── TreeSlugHandlerTest.php │ │ │ └── UserRelativeSlugHandlerTest.php │ │ ├── Inheritance2Test.php │ │ ├── InheritanceTest.php │ │ ├── Issue │ │ │ ├── Issue104Test.php │ │ │ ├── Issue1151Test.php │ │ │ ├── Issue116Test.php │ │ │ ├── Issue131Test.php │ │ │ ├── Issue449Test.php │ │ │ ├── Issue633Test.php │ │ │ ├── Issue827Test.php │ │ │ └── Issue939Test.php │ │ ├── MappedSuperclassTest.php │ │ ├── SluggableConfigurationTest.php │ │ ├── SluggableDocumentTest.php │ │ ├── SluggableFltersTest.php │ │ ├── SluggableIdentifierTest.php │ │ ├── SluggablePositionTest.php │ │ ├── SluggablePrefixSuffixTest.php │ │ ├── SluggableTest.php │ │ ├── TranslatableManySlugTest.php │ │ ├── TranslatableSlugTest.php │ │ └── TransliterationTest.php │ ├── SoftDeleteable │ │ ├── Fixture │ │ │ ├── Document │ │ │ │ ├── User.php │ │ │ │ ├── UserTimeAware.php │ │ │ │ └── UsingTrait.php │ │ │ └── Entity │ │ │ │ ├── Address.php │ │ │ │ ├── Article.php │ │ │ │ ├── Child.php │ │ │ │ ├── Comment.php │ │ │ │ ├── MappedSuperclass.php │ │ │ │ ├── MegaPage.php │ │ │ │ ├── Module.php │ │ │ │ ├── OtherArticle.php │ │ │ │ ├── OtherComment.php │ │ │ │ ├── Page.php │ │ │ │ ├── Person.php │ │ │ │ ├── User.php │ │ │ │ └── UsingTrait.php │ │ ├── HardRelationTest.php │ │ ├── SoftDeletableDocumentTraitTest.php │ │ ├── SoftDeletableEntityTraitTest.php │ │ ├── SoftDeleteableDocumentTest.php │ │ └── SoftDeleteableEntityTest.php │ ├── Sortable │ │ ├── Fixture │ │ │ ├── Author.php │ │ │ ├── Category.php │ │ │ ├── Customer.php │ │ │ ├── CustomerType.php │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ ├── Category.php │ │ │ │ ├── Kid.php │ │ │ │ └── Post.php │ │ │ ├── Event.php │ │ │ ├── Item.php │ │ │ ├── Node.php │ │ │ ├── Paper.php │ │ │ ├── SimpleListItem.php │ │ │ └── Transport │ │ │ │ ├── Bus.php │ │ │ │ ├── Car.php │ │ │ │ ├── Engine.php │ │ │ │ ├── Reservation.php │ │ │ │ └── Vehicle.php │ │ ├── SortableDocumentGroupTest.php │ │ ├── SortableDocumentTest.php │ │ ├── SortableGroupTest.php │ │ └── SortableTest.php │ ├── Timestampable │ │ ├── ChangeTest.php │ │ ├── Fixture │ │ │ ├── Article.php │ │ │ ├── Comment.php │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ └── Type.php │ │ │ ├── MappedSupperClass.php │ │ │ ├── SupperClassExtension.php │ │ │ ├── TitledArticle.php │ │ │ ├── Type.php │ │ │ ├── UsingTrait.php │ │ │ └── WithoutInterface.php │ │ ├── NoInterfaceTest.php │ │ ├── ProtectedPropertySupperclassTest.php │ │ ├── TimestampableDocumentTest.php │ │ ├── TimestampableTest.php │ │ └── TraitUsageTest.php │ ├── Tool │ │ ├── BaseTestCaseMongoODM.php │ │ ├── BaseTestCaseOM.php │ │ └── BaseTestCaseORM.php │ ├── Translatable │ │ ├── EntityTranslationTableTest.php │ │ ├── Fixture │ │ │ ├── Article.php │ │ │ ├── Comment.php │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ ├── Personal │ │ │ │ │ ├── Article.php │ │ │ │ │ └── ArticleTranslation.php │ │ │ │ └── SimpleArticle.php │ │ │ ├── File.php │ │ │ ├── Image.php │ │ │ ├── Issue114 │ │ │ │ ├── Article.php │ │ │ │ └── Category.php │ │ │ ├── Issue138 │ │ │ │ └── Article.php │ │ │ ├── Issue165 │ │ │ │ └── SimpleArticle.php │ │ │ ├── Issue173 │ │ │ │ ├── Article.php │ │ │ │ ├── Category.php │ │ │ │ └── Product.php │ │ │ ├── Issue75 │ │ │ │ ├── Article.php │ │ │ │ ├── File.php │ │ │ │ └── Image.php │ │ │ ├── Issue922 │ │ │ │ └── Post.php │ │ │ ├── MixedValue.php │ │ │ ├── Person.php │ │ │ ├── PersonTranslation.php │ │ │ ├── Personal │ │ │ │ ├── Article.php │ │ │ │ └── PersonalArticleTranslation.php │ │ │ ├── Sport.php │ │ │ ├── StringIdentifier.php │ │ │ ├── Template │ │ │ │ └── ArticleTemplate.php │ │ │ ├── TemplatedArticle.php │ │ │ └── Type │ │ │ │ └── Custom.php │ │ ├── InheritanceTest.php │ │ ├── Issue │ │ │ ├── Issue109Test.php │ │ │ ├── Issue114Test.php │ │ │ ├── Issue135Test.php │ │ │ ├── Issue138Test.php │ │ │ ├── Issue165Test.php │ │ │ ├── Issue173Test.php │ │ │ ├── Issue75Test.php │ │ │ ├── Issue84Test.php │ │ │ └── Issue922Test.php │ │ ├── MixedValueTranslationTest.php │ │ ├── PersonalTranslationDocumentTest.php │ │ ├── PersonalTranslationTest.php │ │ ├── TranslatableDocumentCollectionTest.php │ │ ├── TranslatableDocumentTest.php │ │ ├── TranslatableEntityCollectionTest.php │ │ ├── TranslatableEntityDefaultTranslationTest.php │ │ ├── TranslatableIdentifierTest.php │ │ ├── TranslatableTest.php │ │ └── TranslationQueryWalkerTest.php │ ├── Translator │ │ ├── Fixture │ │ │ ├── CustomProxy.php │ │ │ ├── Person.php │ │ │ ├── PersonCustom.php │ │ │ ├── PersonCustomTranslation.php │ │ │ └── PersonTranslation.php │ │ └── TranslatableTest.php │ ├── Tree │ │ ├── ClosureTreeRepositoryTest.php │ │ ├── ClosureTreeTest.php │ │ ├── ConcurrencyTest.php │ │ ├── Fixture │ │ │ ├── ANode.php │ │ │ ├── Article.php │ │ │ ├── BaseNode.php │ │ │ ├── BehavioralCategory.php │ │ │ ├── Category.php │ │ │ ├── CategoryUuid.php │ │ │ ├── Closure │ │ │ │ ├── Category.php │ │ │ │ ├── CategoryClosure.php │ │ │ │ ├── CategoryWithoutLevel.php │ │ │ │ ├── CategoryWithoutLevelClosure.php │ │ │ │ ├── News.php │ │ │ │ ├── Person.php │ │ │ │ ├── PersonClosure.php │ │ │ │ └── User.php │ │ │ ├── Comment.php │ │ │ ├── Document │ │ │ │ ├── Article.php │ │ │ │ └── Category.php │ │ │ ├── Genealogy │ │ │ │ ├── Man.php │ │ │ │ ├── Person.php │ │ │ │ └── Woman.php │ │ │ ├── MPCategory.php │ │ │ ├── MPCategoryWithTrimmedSeparator.php │ │ │ ├── MPFeaturesCategory.php │ │ │ ├── Mock │ │ │ │ ├── MaterializedPathMock.php │ │ │ │ └── TreeListenerMock.php │ │ │ ├── Node.php │ │ │ ├── Repository │ │ │ │ └── BehavioralCategoryRepository.php │ │ │ ├── Role.php │ │ │ ├── RootCategory.php │ │ │ ├── Transport │ │ │ │ ├── Bus.php │ │ │ │ ├── Car.php │ │ │ │ ├── Engine.php │ │ │ │ └── Vehicle.php │ │ │ ├── User.php │ │ │ ├── UserGroup.php │ │ │ └── UserLDAP.php │ │ ├── InMemoryUpdatesTest.php │ │ ├── InMemoryUpdatesWithInheritanceTest.php │ │ ├── MaterializedPathODMMongoDBRepositoryTest.php │ │ ├── MaterializedPathODMMongoDBTest.php │ │ ├── MaterializedPathODMMongoDBTreeLockingTest.php │ │ ├── MaterializedPathORMFeaturesTest.php │ │ ├── MaterializedPathORMRepositoryTest.php │ │ ├── MaterializedPathORMTest.php │ │ ├── MultInheritanceWithJoinedTableTest.php │ │ ├── MultiInheritanceTest.php │ │ ├── MultiInheritanceWithSingleTableTest.php │ │ ├── NestedTreePositionTest.php │ │ ├── NestedTreeRootRepositoryTest.php │ │ ├── NestedTreeRootTest.php │ │ ├── RepositoryTest.php │ │ ├── TranslatableSluggableTreeTest.php │ │ └── TreeTest.php │ ├── Uploadable │ │ ├── FileInfo │ │ │ └── FileInfoArrayTest.php │ │ ├── FilenameGenerator │ │ │ └── FilenameGeneratorAlphanumericTest.php │ │ ├── Fixture │ │ │ └── Entity │ │ │ │ ├── Article.php │ │ │ │ ├── File.php │ │ │ │ ├── FileAppendNumber.php │ │ │ │ ├── FileAppendNumberRelative.php │ │ │ │ ├── FileWithAllowedTypes.php │ │ │ │ ├── FileWithAlphanumericName.php │ │ │ │ ├── FileWithCustomFilenameGenerator.php │ │ │ │ ├── FileWithDisallowedTypes.php │ │ │ │ ├── FileWithMaxSize.php │ │ │ │ ├── FileWithSha1Name.php │ │ │ │ ├── FileWithoutPath.php │ │ │ │ └── Image.php │ │ ├── Mapping │ │ │ └── ValidatorTest.php │ │ ├── Stub │ │ │ ├── FileInfoStub.php │ │ │ ├── MimeTypeGuesserStub.php │ │ │ └── UploadableListenerStub.php │ │ └── UploadableEntityTest.php │ └── Wrapper │ │ ├── EntityWrapperTest.php │ │ ├── Fixture │ │ ├── Document │ │ │ └── Article.php │ │ └── Entity │ │ │ └── Article.php │ │ └── MongoDocumentWrapperTest.php ├── bootstrap.php ├── data │ ├── test │ ├── test with spaces.txt │ ├── test.txt │ ├── test2.txt │ ├── test4 │ └── test_3.txt ├── phpunit.xml.dist ├── temp │ └── .empty └── travis │ └── php.ini └── upgrade └── 2-3-0.md /.gitignore: -------------------------------------------------------------------------------- 1 | tests/phpunit.xml 2 | tests/temp/*.php 3 | /vendor 4 | /bin 5 | /composer.lock 6 | /composer.phar 7 | .idea 8 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.3 5 | - 5.4 6 | - 5.5 7 | - 5.6 8 | - hhvm 9 | 10 | matrix: 11 | allow_failures: 12 | - php: hhvm 13 | 14 | services: mongodb 15 | 16 | before_install: 17 | - sh -c "if [[ $TRAVIS_PHP_VERSION != 'hhvm' && `php-config --vernum` -ge 50500 ]]; then yes ''| pecl install apcu-beta; else echo 'extension="apc.so"' >> ./tests/travis/php.ini; fi" 18 | - sh -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then phpenv config-add ./tests/travis/php.ini; fi" 19 | # Allow dev versions for HHVM as the Doctrine HHVM support is not yet released 20 | - 'if [[ "$TRAVIS_PHP_VERSION" = "hhvm" ]]; then composer require --dev --no-update doctrine/orm "~2.5@dev" doctrine/dbal "~2.5@dev"; fi' 21 | # Remove the ODM requirement on HHVM as it does not support mongo 22 | - 'if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then grep -v "doctrine/mongodb-odm" composer.json > composer.json.new && mv composer.json.new composer.json; fi' 23 | 24 | install: 25 | - composer install 26 | 27 | script: phpunit -c tests/ 28 | 29 | notifications: 30 | email: 31 | - gediminas.morkevicius@gmail.com 32 | - developers@atlantic18.com 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2013 Gediminas Morkevičius 2 | 3 | The MIT license, reference http://www.opensource.org/licenses/mit-license.php 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is furnished 10 | to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | THIS PROJECT WAS MOVED 2 | PLEASE [REFER TO CHANGED LOCATION](https://github.com/Atlantic18/DoctrineExtensions) 3 | -------------------------------------------------------------------------------- /example/app/Entity/CategoryTranslation.php: -------------------------------------------------------------------------------- 1 | setLocale($locale); 28 | $this->setField($field); 29 | $this->setContent($value); 30 | } 31 | 32 | /** 33 | * @ORM\ManyToOne(targetEntity="Category", inversedBy="translations") 34 | * @ORM\JoinColumn(name="object_id", referencedColumnName="id", onDelete="CASCADE") 35 | */ 36 | protected $object; 37 | } 38 | -------------------------------------------------------------------------------- /example/app/Entity/Repository/CategoryRepository.php: -------------------------------------------------------------------------------- 1 | run(); 6 | 7 | -------------------------------------------------------------------------------- /lib/Gedmo/Blameable/Mapping/Event/Adapter/ODM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ODM extends BaseAdapterODM implements BlameableAdapter 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/Blameable/Mapping/Event/Adapter/ORM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ORM extends BaseAdapterORM implements BlameableAdapter 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/Blameable/Mapping/Event/BlameableAdapter.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface BlameableAdapter extends AdapterInterface 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | interface Exception 14 | { 15 | /** 16 | * Following best practices for PHP5.3 package exceptions. 17 | * All exceptions thrown in this package will have to implement this interface 18 | */ 19 | } 20 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/BadMethodCallException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | class BadMethodCallException 14 | extends \BadMethodCallException 15 | implements Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/FeatureNotImplementedException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class FeatureNotImplementedException 15 | extends \RuntimeException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | class InvalidArgumentException 14 | extends \InvalidArgumentException 15 | implements Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/InvalidMappingException.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | class InvalidMappingException 17 | extends InvalidArgumentException 18 | implements Exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/ReferenceIntegrityStrictException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | class ReferenceIntegrityStrictException extends RuntimeException 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | class RuntimeException 14 | extends \RuntimeException 15 | implements Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/TreeLockingException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class TreeLockingException extends RuntimeException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UnexpectedValueException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | class UnexpectedValueException 14 | extends \UnexpectedValueException 15 | implements Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UnsupportedObjectManagerException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | class UnsupportedObjectManagerException 14 | extends InvalidArgumentException 15 | implements Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableCantWriteException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableCantWriteException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableCouldntGuessMimeTypeException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableCouldntGuessMimeTypeException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableDirectoryNotFoundException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableDirectoryNotFoundException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableException 15 | extends RuntimeException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableExtensionException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableExtensionException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableFileAlreadyExistsException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableFileAlreadyExistsException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableFileNotReadableException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableFileNotReadableException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableFormSizeException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableFormSizeException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableIniSizeException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableIniSizeException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableInvalidFileException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableInvalidFileException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableInvalidMimeTypeException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableInvalidMimeTypeException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableInvalidPathException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableInvalidPathException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableMaxSizeException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableMaxSizeException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableNoFileException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableNoFileException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableNoPathDefinedException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableNoPathDefinedException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableNoTmpDirException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableNoTmpDirException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadablePartialException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadablePartialException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Exception/UploadableUploadException.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | class UploadableUploadException 15 | extends UploadableException 16 | implements Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/IpTraceable/Mapping/Event/Adapter/ODM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ODM extends BaseAdapterODM implements IpTraceableAdapter 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/IpTraceable/Mapping/Event/Adapter/ORM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ORM extends BaseAdapterORM implements IpTraceableAdapter 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/IpTraceable/Mapping/Event/IpTraceableAdapter.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface IpTraceableAdapter extends AdapterInterface 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /lib/Gedmo/Loggable/Document/LogEntry.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | interface Loggable 14 | { 15 | // this interface is not necessary to implement 16 | 17 | /** 18 | * @gedmo:Loggable 19 | * to mark the class as loggable use class annotation @gedmo:Loggable 20 | * this object will contain now a history 21 | * available options: 22 | * logEntryClass="My\LogEntryObject" (optional) defaultly will use internal object class 23 | * example: 24 | * 25 | * @gedmo:Loggable(logEntryClass="My\LogEntryObject") 26 | * class MyEntity 27 | */ 28 | } 29 | -------------------------------------------------------------------------------- /lib/Gedmo/Loggable/Mapping/Event/LoggableAdapter.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface LoggableAdapter extends AdapterInterface 15 | { 16 | /** 17 | * Get default LogEntry class used to store the logs 18 | * 19 | * @return string 20 | */ 21 | public function getDefaultLogEntryClass(); 22 | 23 | /** 24 | * Checks whether an id should be generated post insert 25 | * 26 | * @return boolean 27 | */ 28 | public function isPostInsertGenerator($meta); 29 | 30 | /** 31 | * Get new version number 32 | * 33 | * @param object $meta 34 | * @param object $object 35 | * 36 | * @return integer 37 | */ 38 | public function getNewVersion($meta, $object); 39 | } 40 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Blameable.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Blameable extends Annotation 17 | { 18 | /** @var string */ 19 | public $on = 'update'; 20 | /** @var string|array */ 21 | public $field; 22 | /** @var mixed */ 23 | public $value; 24 | } 25 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/IpTraceable.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class IpTraceable extends Annotation 17 | { 18 | /** @var string */ 19 | public $on = 'update'; 20 | /** @var string|array */ 21 | public $field; 22 | /** @var mixed */ 23 | public $value; 24 | } 25 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Language.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Language extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Locale.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Locale extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Loggable.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Loggable extends Annotation 17 | { 18 | /** @var string */ 19 | public $logEntryClass; 20 | } 21 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Reference.php: -------------------------------------------------------------------------------- 1 | ODM references extension 9 | * to be user like "@ReferenceMany(type="entity", class="MyEntity", identifier="entity_id")" 10 | * 11 | * @author Bulat Shakirzyanov 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | * @Annotation 14 | */ 15 | abstract class Reference extends Annotation 16 | { 17 | public $type; 18 | public $class; 19 | public $identifier; 20 | public $mappedBy; 21 | public $inversedBy; 22 | } 23 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/ReferenceIntegrity.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class ReferenceIntegrity extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/ReferenceMany.php: -------------------------------------------------------------------------------- 1 | ODM references extension 7 | * to be user like "@ReferenceMany(type="entity", class="MyEntity", identifier="entity_id")" 8 | * 9 | * @author Bulat Shakirzyanov 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | * @Annotation 12 | */ 13 | class ReferenceMany extends Reference 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/ReferenceManyEmbed.php: -------------------------------------------------------------------------------- 1 | ODM references extension 7 | * to be user like "@ReferenceOne(type="entity", class="MyEntity", identifier="entity_id")" 8 | * 9 | * @author Bulat Shakirzyanov 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | * @Annotation 12 | */ 13 | class ReferenceOne extends Reference 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Slug.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Slug extends Annotation 17 | { 18 | /** @var array @Required */ 19 | public $fields = array(); 20 | /** @var boolean */ 21 | public $updatable = true; 22 | /** @var string */ 23 | public $style = 'default'; // or "camel" 24 | /** @var boolean */ 25 | public $unique = true; 26 | /** @var string */ 27 | public $unique_base = null; 28 | /** @var string */ 29 | public $separator = '-'; 30 | /** @var string */ 31 | public $prefix = ''; 32 | /** @var string */ 33 | public $suffix = ''; 34 | /** @var array */ 35 | public $handlers = array(); 36 | /** @var string */ 37 | public $dateFormat = 'Y-m-d-H:i'; 38 | } 39 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/SlugHandler.php: -------------------------------------------------------------------------------- 1 | 25 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 26 | */ 27 | final class SlugHandler extends Annotation 28 | { 29 | public $class = ''; 30 | public $options = array(); 31 | } 32 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/SlugHandlerOption.php: -------------------------------------------------------------------------------- 1 | 25 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 26 | */ 27 | final class SlugHandlerOption extends Annotation 28 | { 29 | public $name; 30 | public $value; 31 | } 32 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/SoftDeleteable.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | * 13 | * @Annotation 14 | * @Target("CLASS") 15 | */ 16 | final class SoftDeleteable extends Annotation 17 | { 18 | /** @var string */ 19 | public $fieldName = 'deletedAt'; 20 | 21 | /** @var bool */ 22 | public $timeAware = false; 23 | } 24 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/SortableGroup.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | * 13 | * @Annotation 14 | * @Target("PROPERTY") 15 | */ 16 | final class SortableGroup extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/SortablePosition.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | * 13 | * @Annotation 14 | * @Target("PROPERTY") 15 | */ 16 | final class SortablePosition extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Timestampable.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Timestampable extends Annotation 17 | { 18 | /** @var string */ 19 | public $on = 'update'; 20 | /** @var string|array */ 21 | public $field; 22 | /** @var mixed */ 23 | public $value; 24 | } 25 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Translatable.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Translatable extends Annotation 17 | { 18 | /** @var boolean */ 19 | public $fallback; 20 | } 21 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TranslationEntity.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TranslationEntity extends Annotation 17 | { 18 | /** @var string @Required */ 19 | public $class; 20 | } 21 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Tree.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Tree extends Annotation 17 | { 18 | /** @var string */ 19 | public $type = 'nested'; 20 | 21 | /** @var string */ 22 | public $activateLocking = false; 23 | 24 | /** @var integer */ 25 | public $lockingTimeout = 3; 26 | } 27 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreeClosure.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TreeClosure extends Annotation 17 | { 18 | /** @var string @Required */ 19 | public $class; 20 | } 21 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreeLeft.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TreeLeft extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreeLevel.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TreeLevel extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreeLockTime.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Gediminas Morkevicius 15 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 16 | */ 17 | final class TreeLockTime extends Annotation 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreeParent.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TreeParent extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreePath.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Gediminas Morkevicius 15 | * @author 16 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 | */ 18 | final class TreePath extends Annotation 19 | { 20 | public $separator = ','; 21 | 22 | public $appendId = null; 23 | 24 | public $startsWithSeparator = false; 25 | 26 | public $endsWithSeparator = true; 27 | } 28 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreePathHash.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TreePathHash extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreePathSource.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Gediminas Morkevicius 15 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 16 | */ 17 | final class TreePathSource extends Annotation 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreeRight.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TreeRight extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/TreeRoot.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class TreeRoot extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Uploadable.php: -------------------------------------------------------------------------------- 1 | 15 | * @author Gediminas Morkevicius 16 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 | */ 18 | final class Uploadable extends Annotation 19 | { 20 | /** @var boolean */ 21 | public $allowOverwrite = false; 22 | 23 | /** @var boolean */ 24 | public $appendNumber = false; 25 | 26 | /** @var string */ 27 | public $path = ''; 28 | 29 | /** @var string */ 30 | public $pathMethod = ''; 31 | 32 | /** @var string */ 33 | public $callback = ''; 34 | 35 | /** @var string */ 36 | public $filenameGenerator = Validator::FILENAME_GENERATOR_NONE; 37 | 38 | /** @var double */ 39 | public $maxSize = 0; 40 | 41 | /** @var array */ 42 | public $allowedTypes = ''; 43 | 44 | /** @var array */ 45 | public $disallowedTypes = ''; 46 | } 47 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/UploadableFileMimeType.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Gediminas Morkevicius 15 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 16 | */ 17 | final class UploadableFileMimeType extends Annotation 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/UploadableFileName.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class UploadableFileName extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/UploadableFilePath.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Gediminas Morkevicius 15 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 16 | */ 17 | final class UploadableFilePath extends Annotation 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/UploadableFileSize.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Gediminas Morkevicius 15 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 16 | */ 17 | final class UploadableFileSize extends Annotation 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Annotation/Versioned.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | */ 16 | final class Versioned extends Annotation 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Driver.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | interface Driver 14 | { 15 | /** 16 | * Read extended metadata configuration for 17 | * a single mapped class 18 | * 19 | * @param object $meta 20 | * @param array $config 21 | * 22 | * @return void 23 | */ 24 | public function readExtendedMetadata($meta, array &$config); 25 | 26 | /** 27 | * Passes in the original driver 28 | * 29 | * @param object $driver 30 | * 31 | * @return void 32 | */ 33 | public function setOriginalDriver($driver); 34 | } 35 | -------------------------------------------------------------------------------- /lib/Gedmo/Mapping/Driver/AnnotationDriverInterface.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface AnnotationDriverInterface extends Driver 15 | { 16 | /** 17 | * Set annotation reader class 18 | * since older doctrine versions do not provide an interface 19 | * it must provide these methods: 20 | * getClassAnnotations([reflectionClass]) 21 | * getClassAnnotation([reflectionClass], [name]) 22 | * getPropertyAnnotations([reflectionProperty]) 23 | * getPropertyAnnotation([reflectionProperty], [name]) 24 | * 25 | * @param object $reader - annotation reader class 26 | */ 27 | public function setAnnotationReader($reader); 28 | } 29 | -------------------------------------------------------------------------------- /lib/Gedmo/ReferenceIntegrity/Mapping/Validator.php: -------------------------------------------------------------------------------- 1 | 9 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 | */ 11 | 12 | class Validator 13 | { 14 | const NULLIFY = 'nullify'; 15 | const RESTRICT = 'restrict'; 16 | 17 | /** 18 | * List of actions which are valid as integrity check 19 | * 20 | * @var array 21 | */ 22 | private $integrityActions = array( 23 | self::RESTRICT, 24 | self::NULLIFY, 25 | ); 26 | 27 | /** 28 | * Returns a list of available integrity actions 29 | * 30 | * @return array 31 | */ 32 | public function getIntegrityActions() 33 | { 34 | return $this->integrityActions; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /lib/Gedmo/Sluggable/Util/Urlizer.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ORM extends BaseAdapterORM implements SoftDeleteableAdapter 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /lib/Gedmo/SoftDeleteable/Mapping/Event/SoftDeleteableAdapter.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface SoftDeleteableAdapter extends AdapterInterface 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /lib/Gedmo/SoftDeleteable/SoftDeleteable.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface SoftDeleteable 15 | { 16 | // this interface is not necessary to implement 17 | 18 | /** 19 | * @gedmo:SoftDeleteable 20 | * to mark the class as SoftDeleteable use class annotation @gedmo:SoftDeleteable 21 | * this object will be able to be soft deleted 22 | * example: 23 | * 24 | * @gedmo:SoftDeleteable 25 | * class MyEntity 26 | */ 27 | } 28 | -------------------------------------------------------------------------------- /lib/Gedmo/SoftDeleteable/Traits/SoftDeleteable.php: -------------------------------------------------------------------------------- 1 | = 5.4 7 | * 8 | * @author Wesley van Opdorp 9 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 | */ 11 | trait SoftDeleteable 12 | { 13 | /** 14 | * @var \DateTime 15 | */ 16 | protected $deletedAt; 17 | 18 | /** 19 | * Sets deletedAt. 20 | * 21 | * @param \Datetime|null $deletedAt 22 | * 23 | * @return $this 24 | */ 25 | public function setDeletedAt(\DateTime $deletedAt = null) 26 | { 27 | $this->deletedAt = $deletedAt; 28 | 29 | return $this; 30 | } 31 | 32 | /** 33 | * Returns deletedAt. 34 | * 35 | * @return \DateTime 36 | */ 37 | public function getDeletedAt() 38 | { 39 | return $this->deletedAt; 40 | } 41 | 42 | /** 43 | * Is deleted? 44 | * 45 | * @return bool 46 | */ 47 | public function isDeleted() 48 | { 49 | return null !== $this->deletedAt; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/Gedmo/SoftDeleteable/Traits/SoftDeleteableDocument.php: -------------------------------------------------------------------------------- 1 | = 5.4 9 | * 10 | * @author Wesley van Opdorp 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | trait SoftDeleteableDocument 14 | { 15 | /** 16 | * @var \DateTime 17 | * @ODM\Date 18 | */ 19 | protected $deletedAt; 20 | 21 | /** 22 | * Sets deletedAt. 23 | * 24 | * @param \Datetime|null $deletedAt 25 | * 26 | * @return $this 27 | */ 28 | public function setDeletedAt(\DateTime $deletedAt = null) 29 | { 30 | $this->deletedAt = $deletedAt; 31 | 32 | return $this; 33 | } 34 | 35 | /** 36 | * Returns deletedAt. 37 | * 38 | * @return \DateTime 39 | */ 40 | public function getDeletedAt() 41 | { 42 | return $this->deletedAt; 43 | } 44 | 45 | /** 46 | * Is deleted? 47 | * 48 | * @return bool 49 | */ 50 | public function isDeleted() 51 | { 52 | return null !== $this->deletedAt; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /lib/Gedmo/SoftDeleteable/Traits/SoftDeleteableEntity.php: -------------------------------------------------------------------------------- 1 | = 5.4 9 | * 10 | * @author Wesley van Opdorp 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | trait SoftDeleteableEntity 14 | { 15 | /** 16 | * @var \DateTime 17 | * @ORM\Column(type="datetime", nullable=true) 18 | */ 19 | protected $deletedAt; 20 | 21 | /** 22 | * Sets deletedAt. 23 | * 24 | * @param \Datetime|null $deletedAt 25 | * 26 | * @return $this 27 | */ 28 | public function setDeletedAt(\DateTime $deletedAt = null) 29 | { 30 | $this->deletedAt = $deletedAt; 31 | 32 | return $this; 33 | } 34 | 35 | /** 36 | * Returns deletedAt. 37 | * 38 | * @return \DateTime 39 | */ 40 | public function getDeletedAt() 41 | { 42 | return $this->deletedAt; 43 | } 44 | 45 | /** 46 | * Is deleted? 47 | * 48 | * @return bool 49 | */ 50 | public function isDeleted() 51 | { 52 | return null !== $this->deletedAt; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /lib/Gedmo/Sortable/Mapping/Event/SortableAdapter.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface SortableAdapter extends AdapterInterface 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /lib/Gedmo/Timestampable/Mapping/Event/Adapter/ODM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ODM extends BaseAdapterODM implements TimestampableAdapter 16 | { 17 | /** 18 | * {@inheritDoc} 19 | */ 20 | public function getDateValue($meta, $field) 21 | { 22 | $mapping = $meta->getFieldMapping($field); 23 | if (isset($mapping['type']) && $mapping['type'] === 'timestamp') { 24 | return time(); 25 | } 26 | if (isset($mapping['type']) && $mapping['type'] == 'zenddate') { 27 | return new \Zend_Date(); 28 | } 29 | 30 | return new \DateTime(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/Gedmo/Timestampable/Mapping/Event/Adapter/ORM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ORM extends BaseAdapterORM implements TimestampableAdapter 16 | { 17 | /** 18 | * {@inheritDoc} 19 | */ 20 | public function getDateValue($meta, $field) 21 | { 22 | $mapping = $meta->getFieldMapping($field); 23 | if (isset($mapping['type']) && $mapping['type'] === 'integer') { 24 | return time(); 25 | } 26 | if (isset($mapping['type']) && $mapping['type'] == 'zenddate') { 27 | return new \Zend_Date(); 28 | } 29 | 30 | return new \DateTime(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/Gedmo/Timestampable/Mapping/Event/TimestampableAdapter.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface TimestampableAdapter extends AdapterInterface 15 | { 16 | /** 17 | * Get the date value 18 | * 19 | * @param object $meta 20 | * @param string $field 21 | * 22 | * @return mixed 23 | */ 24 | public function getDateValue($meta, $field); 25 | } 26 | -------------------------------------------------------------------------------- /lib/Gedmo/Translatable/Document/Translation.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | interface Translatable 14 | { 15 | // use now annotations instead of predefined methods, this interface is not necessary 16 | 17 | /** 18 | * @gedmo:TranslationEntity 19 | * to specify custom translation class use 20 | * class annotation @gedmo:TranslationEntity(class="your\class") 21 | */ 22 | 23 | /** 24 | * @gedmo:Translatable 25 | * to mark the field as translatable, 26 | * these fields will be translated 27 | */ 28 | 29 | /** 30 | * @gedmo:Locale OR @gedmo:Language 31 | * to mark the field as locale used to override global 32 | * locale settings from TranslatableListener 33 | */ 34 | } 35 | -------------------------------------------------------------------------------- /lib/Gedmo/Translator/Document/Translation.php: -------------------------------------------------------------------------------- 1 | 14 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 15 | * 16 | * @MappedSuperclass 17 | */ 18 | abstract class Translation extends BaseTranslation 19 | { 20 | /** 21 | * @Id 22 | */ 23 | protected $id; 24 | 25 | /** 26 | * @var string $locale 27 | * 28 | * @MongoString 29 | */ 30 | protected $locale; 31 | 32 | /** 33 | * @var string $property 34 | * 35 | * @MongoString 36 | */ 37 | protected $property; 38 | 39 | /** 40 | * @var string $value 41 | * 42 | * @MongoString 43 | */ 44 | protected $value; 45 | 46 | /** 47 | * Get id 48 | * 49 | * @return integer $id 50 | */ 51 | public function getId() 52 | { 53 | return $this->id; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /lib/Gedmo/Tree/Mapping/Event/Adapter/ODM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ODM extends BaseAdapterODM implements TreeAdapter 16 | { 17 | // Nothing specific yet 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Tree/Mapping/Event/Adapter/ORM.php: -------------------------------------------------------------------------------- 1 | 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | final class ORM extends BaseAdapterORM implements TreeAdapter 16 | { 17 | // Nothing specific yet 18 | } 19 | -------------------------------------------------------------------------------- /lib/Gedmo/Tree/Mapping/Event/TreeAdapter.php: -------------------------------------------------------------------------------- 1 | 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface TreeAdapter extends AdapterInterface 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /lib/Gedmo/Tree/Node.php: -------------------------------------------------------------------------------- 1 | 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | interface Node 14 | { 15 | // use now annotations instead of predefined methods, this interface is not necessary 16 | 17 | /** 18 | * @gedmo:TreeLeft 19 | * to mark the field as "tree left" use property annotation @gedmo:TreeLeft 20 | * it will use this field to store tree left value 21 | */ 22 | 23 | /** 24 | * @gedmo:TreeRight 25 | * to mark the field as "tree right" use property annotation @gedmo:TreeRight 26 | * it will use this field to store tree right value 27 | */ 28 | 29 | /** 30 | * @gedmo:TreeParent 31 | * in every tree there should be link to parent. To identify a relation 32 | * as parent relation to child use @Tree:Ancestor annotation on the related property 33 | */ 34 | 35 | /** 36 | * @gedmo:TreeLevel 37 | * level of node. 38 | */ 39 | } 40 | -------------------------------------------------------------------------------- /lib/Gedmo/Tree/Traits/NestedSet.php: -------------------------------------------------------------------------------- 1 | = 5.4 7 | * 8 | * @author Renaat De Muynck 9 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 | */ 11 | trait NestedSet 12 | { 13 | 14 | /** 15 | * @var integer 16 | */ 17 | private $root; 18 | 19 | /** 20 | * @var integer 21 | */ 22 | private $level; 23 | 24 | /** 25 | * @var integer 26 | */ 27 | private $left; 28 | 29 | /** 30 | * @var integer 31 | */ 32 | private $right; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /lib/Gedmo/Tree/Traits/NestedSetEntity.php: -------------------------------------------------------------------------------- 1 | = 5.4 10 | * 11 | * @author Renaat De Muynck 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | trait NestedSetEntity 15 | { 16 | /** 17 | * @var integer 18 | * @Gedmo\TreeRoot 19 | * @ORM\Column(name="root", type="integer", nullable=true) 20 | */ 21 | private $root; 22 | 23 | /** 24 | * @var integer 25 | * @Gedmo\TreeLevel 26 | * @ORM\Column(name="lvl", type="integer") 27 | */ 28 | private $level; 29 | 30 | /** 31 | * @var integer 32 | * @Gedmo\TreeLeft 33 | * @ORM\Column(name="lft", type="integer") 34 | */ 35 | private $left; 36 | 37 | /** 38 | * @var integer 39 | * @Gedmo\TreeRight 40 | * @ORM\Column(name="rgt", type="integer") 41 | */ 42 | private $right; 43 | } 44 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/Event/UploadablePostFileProcessEventArgs.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | */ 12 | 13 | class UploadablePostFileProcessEventArgs extends UploadableBaseEventArgs 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/Event/UploadablePreFileProcessEventArgs.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | */ 12 | 13 | class UploadablePreFileProcessEventArgs extends UploadableBaseEventArgs 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/Events.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | */ 12 | 13 | final class Events 14 | { 15 | private function __construct() 16 | { 17 | } 18 | /** 19 | * The uploadablePreFileProcess event occurs before a file is processed inside 20 | * the Uploadable listener. This means it happens before the file is validated and moved 21 | * to the configured path. 22 | * 23 | * @var string 24 | */ 25 | const uploadablePreFileProcess = 'uploadablePreFileProcess'; 26 | /** 27 | * The uploadablePostFileProcess event occurs after a file is processed inside 28 | * the Uploadable listener. This means it happens after the file is validated and moved 29 | * to the configured path. 30 | * 31 | * @var string 32 | */ 33 | const uploadablePostFileProcess = 'uploadablePostFileProcess'; 34 | } 35 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/FileInfo/FileInfoInterface.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | */ 12 | 13 | interface FileInfoInterface 14 | { 15 | public function getTmpName(); 16 | public function getName(); 17 | public function getSize(); 18 | public function getType(); 19 | public function getError(); 20 | 21 | /** 22 | * This method must return true if the file is coming from $_FILES, or false instead. 23 | * 24 | * @return bool 25 | */ 26 | public function isUploadedFile(); 27 | } 28 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/FilenameGenerator/FilenameGeneratorAlphanumeric.php: -------------------------------------------------------------------------------- 1 | 12 | * @author Gediminas Morkevicius 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | 16 | class FilenameGeneratorAlphanumeric implements FilenameGeneratorInterface 17 | { 18 | /** 19 | * @inheritDoc 20 | */ 21 | public static function generate($filename, $extension, $object = null) 22 | { 23 | return preg_replace('/[^a-z0-9]+/', '-', strtolower($filename)).$extension; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/FilenameGenerator/FilenameGeneratorInterface.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | */ 12 | 13 | interface FilenameGeneratorInterface 14 | { 15 | /** 16 | * Generates a new filename 17 | * 18 | * @param string - Filename without extension 19 | * @param string - Extension with dot: .jpg, .gif, etc 20 | * @param $object 21 | * 22 | * @return string 23 | */ 24 | public static function generate($filename, $extension, $object = null); 25 | } 26 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/FilenameGenerator/FilenameGeneratorSha1.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | */ 12 | 13 | class FilenameGeneratorSha1 implements FilenameGeneratorInterface 14 | { 15 | /** 16 | * @inheritDoc 17 | */ 18 | public static function generate($filename, $extension, $object = null) 19 | { 20 | return sha1(uniqid($filename.$extension, true)).$extension; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/MimeType/MimeTypeGuesserInterface.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 | */ 12 | interface MimeTypeGuesserInterface 13 | { 14 | public function guess($filePath); 15 | } 16 | -------------------------------------------------------------------------------- /lib/Gedmo/Uploadable/Uploadable.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 | */ 14 | interface Uploadable 15 | { 16 | // this interface is not necessary to implement 17 | 18 | /** 19 | * @gedmo:Uploadable 20 | * to mark the class as Uploadable use class annotation @gedmo:Uploadable 21 | * this object will be able Uploadable 22 | * example: 23 | * 24 | * @gedmo:Uploadable 25 | * class MyEntity 26 | */ 27 | } 28 | -------------------------------------------------------------------------------- /tests/Gedmo/Blameable/Fixture/Document/Type.php: -------------------------------------------------------------------------------- 1 | id; 28 | } 29 | 30 | public function setTitle($title) 31 | { 32 | $this->title = $title; 33 | } 34 | 35 | public function getTitle() 36 | { 37 | return $this->title; 38 | } 39 | 40 | public function getIdentifier() 41 | { 42 | return $this->identifier; 43 | } 44 | 45 | public function setIdentifier($identifier) 46 | { 47 | $this->identifier = $identifier; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /tests/Gedmo/Blameable/Fixture/Document/User.php: -------------------------------------------------------------------------------- 1 | id; 23 | } 24 | 25 | public function setUsername($username) 26 | { 27 | $this->username = $username; 28 | } 29 | 30 | public function getUsername() 31 | { 32 | return $this->username; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/Gedmo/Blameable/Fixture/Entity/SupperClassExtension.php: -------------------------------------------------------------------------------- 1 | title = $title; 22 | } 23 | 24 | public function getTitle() 25 | { 26 | return $this->title; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Gedmo/Blameable/Fixture/Entity/Type.php: -------------------------------------------------------------------------------- 1 | id; 27 | } 28 | 29 | public function setTitle($title) 30 | { 31 | $this->title = $title; 32 | } 33 | 34 | public function getTitle() 35 | { 36 | return $this->title; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/Gedmo/Blameable/Fixture/Entity/UsingTrait.php: -------------------------------------------------------------------------------- 1 | id; 33 | } 34 | 35 | public function setTitle($title) 36 | { 37 | $this->title = $title; 38 | } 39 | 40 | public function getTitle() 41 | { 42 | return $this->title; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /tests/Gedmo/Blameable/Fixture/Entity/WithoutInterface.php: -------------------------------------------------------------------------------- 1 | id; 35 | } 36 | 37 | public function setTitle($title) 38 | { 39 | $this->title = $title; 40 | } 41 | 42 | public function getTitle() 43 | { 44 | return $this->title; 45 | } 46 | 47 | public function getCreated() 48 | { 49 | return $this->created; 50 | } 51 | 52 | public function getUpdated() 53 | { 54 | return $this->updated; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /tests/Gedmo/IpTraceable/Fixture/Document/Type.php: -------------------------------------------------------------------------------- 1 | id; 28 | } 29 | 30 | public function setTitle($title) 31 | { 32 | $this->title = $title; 33 | } 34 | 35 | public function getTitle() 36 | { 37 | return $this->title; 38 | } 39 | 40 | public function getIdentifier() 41 | { 42 | return $this->identifier; 43 | } 44 | 45 | public function setIdentifier($identifier) 46 | { 47 | $this->identifier = $identifier; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /tests/Gedmo/IpTraceable/Fixture/SupperClassExtension.php: -------------------------------------------------------------------------------- 1 | title = $title; 22 | } 23 | 24 | public function getTitle() 25 | { 26 | return $this->title; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Gedmo/IpTraceable/Fixture/Type.php: -------------------------------------------------------------------------------- 1 | id; 27 | } 28 | 29 | public function setTitle($title) 30 | { 31 | $this->title = $title; 32 | } 33 | 34 | public function getTitle() 35 | { 36 | return $this->title; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/Gedmo/IpTraceable/Fixture/UsingTrait.php: -------------------------------------------------------------------------------- 1 | id; 33 | } 34 | 35 | public function setTitle($title) 36 | { 37 | $this->title = $title; 38 | } 39 | 40 | public function getTitle() 41 | { 42 | return $this->title; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /tests/Gedmo/IpTraceable/Fixture/WithoutInterface.php: -------------------------------------------------------------------------------- 1 | id; 36 | } 37 | 38 | public function setTitle($title) 39 | { 40 | $this->title = $title; 41 | } 42 | 43 | public function getTitle() 44 | { 45 | return $this->title; 46 | } 47 | 48 | public function getCreated() 49 | { 50 | return $this->created; 51 | } 52 | 53 | public function getUpdated() 54 | { 55 | return $this->updated; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /tests/Gedmo/Loggable/Fixture/Document/Article.php: -------------------------------------------------------------------------------- 1 | title; 32 | } 33 | 34 | public function getId() 35 | { 36 | return $this->id; 37 | } 38 | 39 | public function setTitle($title) 40 | { 41 | $this->title = $title; 42 | } 43 | 44 | public function getTitle() 45 | { 46 | return $this->title; 47 | } 48 | 49 | public function setAuthor($author) 50 | { 51 | $this->author = $author; 52 | } 53 | 54 | public function getAuthor() 55 | { 56 | return $this->author; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /tests/Gedmo/Loggable/Fixture/Document/Author.php: -------------------------------------------------------------------------------- 1 | getName(); 29 | } 30 | 31 | public function setName($name) 32 | { 33 | $this->name = $name; 34 | } 35 | 36 | public function getName() 37 | { 38 | return $this->name; 39 | } 40 | 41 | public function setEmail($email) 42 | { 43 | $this->email = $email; 44 | } 45 | 46 | public function getEmail() 47 | { 48 | return $this->email; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /tests/Gedmo/Loggable/Fixture/Document/Log/Comment.php: -------------------------------------------------------------------------------- 1 | id; 30 | } 31 | 32 | public function setTitle($title) 33 | { 34 | $this->title = $title; 35 | } 36 | 37 | public function getTitle() 38 | { 39 | return $this->title; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tests/Gedmo/Loggable/Fixture/Entity/Log/Comment.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Xml/Mapping.Fixture.Xml.Loggable.dcm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Xml/Mapping.Fixture.Xml.SoftDeleteable.dcm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Xml/Mapping.Fixture.Xml.Status.dcm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Xml/Mapping.Fixture.Xml.Timestampable.dcm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Xml/Mapping.Fixture.Xml.Translatable.dcm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Xml/Status.orm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Xml/Timestampable.orm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Yaml/Mapping.Fixture.Yaml.BaseCategory.dcm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Mapping\Fixture\Yaml\BaseCategory: 3 | type: mappedSuperclass 4 | fields: 5 | lft: 6 | type: integer 7 | gedmo: 8 | - treeLeft 9 | rgt: 10 | type: integer 11 | gedmo: 12 | - treeRight 13 | root: 14 | type: integer 15 | gedmo: 16 | - treeRoot 17 | lvl: 18 | type: integer 19 | gedmo: 20 | - treeLevel 21 | created: 22 | type: datetime 23 | gedmo: 24 | timestampable: 25 | on: create 26 | updated: 27 | type: date 28 | gedmo: 29 | timestampable: 30 | on: update 31 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Yaml/Mapping.Fixture.Yaml.ClosureCategory.dcm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Mapping\Fixture\Yaml\ClosureCategory: 3 | type: entity 4 | table: closure_categories 5 | id: 6 | id: 7 | type: integer 8 | generator: 9 | strategy: AUTO 10 | gedmo: 11 | tree: 12 | type: closure 13 | closure: Tree\Fixture\Closure\CategoryClosure 14 | fields: 15 | title: 16 | type: string 17 | length: 64 18 | level: 19 | type: integer 20 | gedmo: 21 | - treeLevel 22 | manyToOne: 23 | parent: 24 | targetEntity: Mapping\Fixture\Yaml\ClosureCategory 25 | inversedBy: children 26 | gedmo: 27 | - treeParent 28 | oneToMany: 29 | children: 30 | targetEntity: Mapping\Fixture\Yaml\ClosureCategory 31 | mappedBy: parent 32 | indexes: 33 | search_idx: 34 | columns: title 35 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Yaml/Mapping.Fixture.Yaml.MaterializedPathCategory.dcm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Mapping\Fixture\Yaml\MaterializedPathCategory: 3 | type: entity 4 | table: materialized_path_categories 5 | id: 6 | id: 7 | type: integer 8 | generator: 9 | strategy: AUTO 10 | gedmo: 11 | tree: 12 | type: materializedPath 13 | activateLocking: true 14 | fields: 15 | title: 16 | type: string 17 | length: 64 18 | gedmo: 19 | - treePathSource 20 | path: 21 | type: string 22 | length: 3000 23 | gedmo: 24 | treePath: 25 | separator: ',' 26 | level: 27 | type: integer 28 | gedmo: 29 | - treeLevel 30 | lockTime: 31 | type: datetime 32 | gedmo: 33 | - treeLockTime 34 | manyToOne: 35 | parent: 36 | targetEntity: Mapping\Fixture\Yaml\MaterializedPathCategory 37 | inversedBy: children 38 | gedmo: 39 | - treeParent 40 | indexes: 41 | search_idx: 42 | columns: title 43 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Yaml/Mapping.Fixture.Yaml.SoftDeleteable.dcm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Mapping\Fixture\Yaml\SoftDeleteable: 3 | type: entity 4 | table: soft_deleteables 5 | gedmo: 6 | soft_deleteable: 7 | field_name: deletedAt 8 | id: 9 | id: 10 | type: integer 11 | generator: 12 | strategy: AUTO 13 | fields: 14 | deletedAt: 15 | type: datetime 16 | nullable: true 17 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Yaml/Mapping.Fixture.Yaml.Sortable.dcm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Mapping\Fixture\Yaml\Sortable: 3 | type: entity 4 | table: sortables 5 | id: 6 | id: 7 | type: integer 8 | generator: 9 | strategy: AUTO 10 | fields: 11 | title: 12 | type: string 13 | length: 32 14 | position: 15 | type: integer 16 | gedmo: 17 | - sortablePosition 18 | grouping: 19 | type: string 20 | length: 128 21 | gedmo: 22 | - sortableGroup 23 | manyToOne: 24 | sortable_group: 25 | targetEntity: Mapping\Fixture\SortableGroup 26 | gedmo: 27 | - sortableGroup 28 | manyToMany: 29 | sortable_groups: 30 | targetEntity: Mapping\Fixture\SortableGroup 31 | gedmo: 32 | - sortableGroup 33 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Yaml/Mapping.Fixture.Yaml.Uploadable.dcm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Mapping\Fixture\Yaml\Uploadable: 3 | type: entity 4 | table: uploadables 5 | gedmo: 6 | uploadable: 7 | allowOverwrite: true 8 | appendNumber: true 9 | path: '/my/path' 10 | pathMethod: getPath 11 | callback: callbackMethod 12 | filenameGenerator: SHA1 13 | maxSize: 1500 14 | allowedTypes: 'text/plain,text/css' 15 | disallowedTypes: 'video/jpeg,text/html' 16 | id: 17 | id: 18 | type: integer 19 | generator: 20 | strategy: AUTO 21 | fields: 22 | path: 23 | type: string 24 | gedmo: 25 | - uploadableFilePath 26 | mimeType: 27 | type: string 28 | gedmo: 29 | - uploadableFileMimeType 30 | size: 31 | type: decimal 32 | gedmo: 33 | - uploadableFileSize 34 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Driver/Yaml/Mapping.Fixture.Yaml.User.dcm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Mapping\Fixture\Yaml\User: 3 | type: entity 4 | gedmo: 5 | translation: 6 | entity: Translatable\Fixture\PersonTranslation 7 | locale: localeField 8 | table: users 9 | id: 10 | id: 11 | type: integer 12 | generator: 13 | strategy: AUTO 14 | fields: 15 | password: 16 | type: string 17 | length: 32 18 | gedmo: 19 | - translatable 20 | username: 21 | type: string 22 | length: 128 23 | gedmo: 24 | - translatable 25 | company: 26 | type: string 27 | length: 128 28 | nullable: true 29 | gedmo: 30 | translatable: 31 | fallback: true 32 | indexes: 33 | search_idx: 34 | columns: username 35 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Fixture/ClosureTreeClosure.php: -------------------------------------------------------------------------------- 1 | name = $name; 33 | } 34 | 35 | public function getName() 36 | { 37 | return $this->name; 38 | } 39 | 40 | public function setPassword($password) 41 | { 42 | $this->password = $password; 43 | } 44 | 45 | public function getPassword() 46 | { 47 | return $this->password; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Fixture/SoftDeleteable.php: -------------------------------------------------------------------------------- 1 | id; 29 | } 30 | 31 | public function setTitle($title) 32 | { 33 | $this->title = $title; 34 | } 35 | 36 | public function getTitle() 37 | { 38 | return $this->title; 39 | } 40 | 41 | public function setCode($code) 42 | { 43 | $this->code = $code; 44 | } 45 | 46 | public function getCode() 47 | { 48 | return $this->code; 49 | } 50 | 51 | public function getSlug() 52 | { 53 | return $this->slug; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Fixture/SortableGroup.php: -------------------------------------------------------------------------------- 1 | name = $name; 36 | } 37 | 38 | public function getName() 39 | { 40 | return $this->name; 41 | } 42 | 43 | public function setPassword($password) 44 | { 45 | $this->password = $password; 46 | } 47 | 48 | public function getPassword() 49 | { 50 | return $this->password; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Fixture/Xml/ClosureTree.php: -------------------------------------------------------------------------------- 1 | path; 20 | } 21 | 22 | public function callbackMethod() 23 | { 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Fixture/Yaml/SoftDeleteable.php: -------------------------------------------------------------------------------- 1 | path; 20 | } 21 | 22 | public function callbackMethod() 23 | { 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Mock/EventSubscriberCustomMock.php: -------------------------------------------------------------------------------- 1 | getEventAdapter($args); 17 | } 18 | 19 | public function getSubscribedEvents() 20 | { 21 | return array(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Mock/EventSubscriberMock.php: -------------------------------------------------------------------------------- 1 | getEventAdapter($args); 17 | } 18 | 19 | public function getSubscribedEvents() 20 | { 21 | return array(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/Gedmo/Mapping/Mock/Extension/Encoder/Mapping/Annotations.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setName($name) 37 | { 38 | $this->name = $name; 39 | 40 | return $this; 41 | } 42 | 43 | public function getName() 44 | { 45 | return $this->name; 46 | } 47 | 48 | public function getProducts() 49 | { 50 | return $this->products; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Comment.php: -------------------------------------------------------------------------------- 1 | article = $article; 32 | } 33 | 34 | public function getId() 35 | { 36 | return $this->id; 37 | } 38 | 39 | public function setMessage($message) 40 | { 41 | $this->message = $message; 42 | } 43 | 44 | public function getMessage() 45 | { 46 | return $this->message; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Doctrine/FakeFilter.php: -------------------------------------------------------------------------------- 1 | id; 35 | } 36 | 37 | public function setTitle($title) 38 | { 39 | $this->title = $title; 40 | } 41 | 42 | public function getTitle() 43 | { 44 | return $this->title; 45 | } 46 | 47 | public function setCode($code) 48 | { 49 | $this->code = $code; 50 | } 51 | 52 | public function getCode() 53 | { 54 | return $this->code; 55 | } 56 | 57 | public function getSlug() 58 | { 59 | return $this->slug; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Identifier.php: -------------------------------------------------------------------------------- 1 | id; 28 | } 29 | 30 | public function setTitle($title) 31 | { 32 | $this->title = $title; 33 | } 34 | 35 | public function getTitle() 36 | { 37 | return $this->title; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Inheritance/Car.php: -------------------------------------------------------------------------------- 1 | description = $description; 20 | } 21 | 22 | public function getDescription() 23 | { 24 | return $this->description; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Inheritance/Vehicle.php: -------------------------------------------------------------------------------- 1 | id; 40 | } 41 | 42 | public function setTitle($title) 43 | { 44 | $this->title = $title; 45 | } 46 | 47 | public function getTitle() 48 | { 49 | return $this->title; 50 | } 51 | 52 | public function getSlug() 53 | { 54 | return $this->slug; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Inheritance2/Car.php: -------------------------------------------------------------------------------- 1 | description = $description; 32 | } 33 | 34 | public function getDescription() 35 | { 36 | return $this->description; 37 | } 38 | 39 | public function setTitle($title) 40 | { 41 | $this->title = $title; 42 | } 43 | 44 | public function getTitle() 45 | { 46 | return $this->title; 47 | } 48 | 49 | public function getSlug() 50 | { 51 | return $this->slug; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Inheritance2/SportCar.php: -------------------------------------------------------------------------------- 1 | id; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue104/Bus.php: -------------------------------------------------------------------------------- 1 | title = $title; 27 | } 28 | 29 | public function getTitle() 30 | { 31 | return $this->title; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue104/Car.php: -------------------------------------------------------------------------------- 1 | description = $description; 25 | } 26 | 27 | public function getDescription() 28 | { 29 | return $this->description; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue104/Icarus.php: -------------------------------------------------------------------------------- 1 | description = $description; 27 | } 28 | 29 | public function getDescription() 30 | { 31 | return $this->description; 32 | } 33 | 34 | public function getSlug() 35 | { 36 | return $this->slug; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue104/Vehicle.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function getSlug() 47 | { 48 | return $this->slug; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue116/Country.php: -------------------------------------------------------------------------------- 1 | id; 15 | } 16 | 17 | public function setOriginalName($originalName) 18 | { 19 | $this->originalName = $originalName; 20 | } 21 | 22 | public function getOriginalName() 23 | { 24 | return $this->originalName; 25 | } 26 | 27 | public function getAlias() 28 | { 29 | return $this->alias; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue116/Mapping/Sluggable.Fixture.Issue116.Country.dcm.yml: -------------------------------------------------------------------------------- 1 | Sluggable\Fixture\Issue116\Country: 2 | type: entity 3 | table: sta_country 4 | fields: 5 | id: 6 | id: true 7 | type: integer 8 | unsigned: false 9 | nullable: false 10 | generator: 11 | strategy: IDENTITY 12 | alias: 13 | type: string(50) 14 | fixed: false 15 | nullable: false 16 | gedmo: 17 | slug: 18 | separator: "-" 19 | fields: 20 | - originalName 21 | languageCode: 22 | type: string(10) 23 | fixed: false 24 | nullable: true 25 | column: language_code 26 | originalName: 27 | type: string(50) 28 | fixed: false 29 | nullable: false 30 | column: original_name 31 | lifecycleCallbacks: { } 32 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue131/Article.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function getSlug() 47 | { 48 | return $this->slug; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue827/Category.php: -------------------------------------------------------------------------------- 1 | id; 39 | } 40 | 41 | public function setTitle($title) 42 | { 43 | $this->title = $title; 44 | } 45 | 46 | public function getTitle() 47 | { 48 | return $this->title; 49 | } 50 | 51 | public function getSlug() 52 | { 53 | return $this->slug; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue827/Post.php: -------------------------------------------------------------------------------- 1 | title = $title; 34 | } 35 | 36 | public function getTitle() 37 | { 38 | return $this->title; 39 | } 40 | 41 | public function getSlug() 42 | { 43 | return $this->slug; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Issue939/Category.php: -------------------------------------------------------------------------------- 1 | id; 39 | } 40 | 41 | public function setTitle($title) 42 | { 43 | $this->title = $title; 44 | } 45 | 46 | public function getTitle() 47 | { 48 | return $this->title; 49 | } 50 | 51 | public function getSlug() 52 | { 53 | return $this->slug; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/MappedSuperclass/Car.php: -------------------------------------------------------------------------------- 1 | description = $description; 27 | } 28 | 29 | public function getDescription() 30 | { 31 | return $this->description; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/MappedSuperclass/Vehicle.php: -------------------------------------------------------------------------------- 1 | id; 27 | } 28 | 29 | public function setTitle($title) 30 | { 31 | $this->title = $title; 32 | } 33 | 34 | public function getTitle() 35 | { 36 | return $this->title; 37 | } 38 | 39 | public function getSlug() 40 | { 41 | return $this->slug; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Fixture/Position.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function getSlug() 47 | { 48 | return $this->slug; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /tests/Gedmo/Sluggable/Issue/Issue1151Test.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | class Issue1151Test extends BaseTestCaseMongoODM 15 | { 16 | /** 17 | * Test if new object with predefined id will be processed by sluggable listener 18 | */ 19 | public function testSlugCreateOnNewArticle() 20 | { 21 | $article = new Article(); 22 | $article->setId('ABC123'); 23 | $article->setTitle('Test'); 24 | $this->dm->persist($article); 25 | 26 | $this->dm->flush(); 27 | $this->assertEquals('test', $article->getSlug()); 28 | } 29 | 30 | /** 31 | * Set up test 32 | */ 33 | protected function setUp() 34 | { 35 | parent::setUp(); 36 | $evm = new EventManager(); 37 | $evm->addEventSubscriber(new SluggableListener()); 38 | 39 | $this->getMockDocumentManager($evm); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tests/Gedmo/SoftDeleteable/Fixture/Document/UsingTrait.php: -------------------------------------------------------------------------------- 1 | title = $title; 20 | } 21 | 22 | public function getTitle() 23 | { 24 | return $this->title; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/Gedmo/SoftDeleteable/Fixture/Entity/MappedSuperclass.php: -------------------------------------------------------------------------------- 1 | id; 29 | } 30 | 31 | public function setDeletedAt($deletedAt) 32 | { 33 | $this->deletedAt = $deletedAt; 34 | } 35 | 36 | public function getDeletedAt() 37 | { 38 | return $this->deletedAt; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/Gedmo/SoftDeleteable/Fixture/Entity/MegaPage.php: -------------------------------------------------------------------------------- 1 | id; 33 | } 34 | 35 | public function setUsername($username) 36 | { 37 | $this->username = $username; 38 | } 39 | 40 | public function getUsername() 41 | { 42 | return $this->username; 43 | } 44 | 45 | public function setDeletedAt($deletedAt) 46 | { 47 | $this->deletedAt = $deletedAt; 48 | } 49 | 50 | public function getDeletedAt() 51 | { 52 | return $this->deletedAt; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /tests/Gedmo/SoftDeleteable/Fixture/Entity/UsingTrait.php: -------------------------------------------------------------------------------- 1 | items = new ArrayCollection(); 33 | } 34 | 35 | public function getId() 36 | { 37 | return $this->id; 38 | } 39 | 40 | public function setName($name) 41 | { 42 | $this->name = $name; 43 | } 44 | 45 | public function getName() 46 | { 47 | return $this->name; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /tests/Gedmo/Sortable/Fixture/Customer.php: -------------------------------------------------------------------------------- 1 | id; 33 | } 34 | 35 | public function getName() 36 | { 37 | return $this->name; 38 | } 39 | 40 | public function setName($name) 41 | { 42 | $this->name = $name; 43 | } 44 | 45 | public function getType() 46 | { 47 | return $this->type; 48 | } 49 | 50 | public function setType(CustomerType $type) 51 | { 52 | $this->type = $type; 53 | if (!$type->getCustomers()->contains($this)) { 54 | $type->addCustomer($this); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /tests/Gedmo/Sortable/Fixture/Document/Article.php: -------------------------------------------------------------------------------- 1 | id; 30 | } 31 | 32 | public function setTitle($title) 33 | { 34 | $this->title = $title; 35 | } 36 | 37 | public function getTitle() 38 | { 39 | return $this->title; 40 | } 41 | 42 | public function setPosition($position) 43 | { 44 | $this->position = $position; 45 | } 46 | 47 | public function getPosition() 48 | { 49 | return $this->position; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /tests/Gedmo/Sortable/Fixture/Document/Category.php: -------------------------------------------------------------------------------- 1 | id; 25 | } 26 | 27 | public function setName($name) 28 | { 29 | $this->name = $name; 30 | } 31 | 32 | public function getName() 33 | { 34 | return $this->name; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/Gedmo/Sortable/Fixture/Paper.php: -------------------------------------------------------------------------------- 1 | authors = new ArrayCollection(); 33 | } 34 | public function getId() 35 | { 36 | return $this->id; 37 | } 38 | public function getName() 39 | { 40 | return $this->name; 41 | } 42 | public function setName($name) 43 | { 44 | $this->name = $name; 45 | } 46 | public function getAuthors() 47 | { 48 | return $this->authors; 49 | } 50 | public function addAuthor($author) 51 | { 52 | $this->authors->add($author); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /tests/Gedmo/Sortable/Fixture/SimpleListItem.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setName($name) 37 | { 38 | $this->name = $name; 39 | } 40 | 41 | public function getName() 42 | { 43 | return $this->name; 44 | } 45 | 46 | public function setPosition($position) 47 | { 48 | $this->position = $position; 49 | } 50 | 51 | public function getPosition() 52 | { 53 | return $this->position; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Sortable/Fixture/Transport/Bus.php: -------------------------------------------------------------------------------- 1 | parent = $parent; 26 | } 27 | 28 | public function getChildren() 29 | { 30 | return $this->children; 31 | } 32 | 33 | public function getParent() 34 | { 35 | return $this->parent; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/Gedmo/Sortable/Fixture/Transport/Engine.php: -------------------------------------------------------------------------------- 1 | id; 32 | } 33 | 34 | public function setType($type) 35 | { 36 | $this->type = $type; 37 | } 38 | 39 | public function getType() 40 | { 41 | return $this->type; 42 | } 43 | 44 | public function setValves($valves) 45 | { 46 | $this->valves = $valves; 47 | } 48 | 49 | public function getValves() 50 | { 51 | return $this->valves; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /tests/Gedmo/Timestampable/Fixture/Document/Type.php: -------------------------------------------------------------------------------- 1 | id; 28 | } 29 | 30 | public function setTitle($title) 31 | { 32 | $this->title = $title; 33 | } 34 | 35 | public function getTitle() 36 | { 37 | return $this->title; 38 | } 39 | 40 | public function getIdentifier() 41 | { 42 | return $this->identifier; 43 | } 44 | 45 | public function setIdentifier($identifier) 46 | { 47 | $this->identifier = $identifier; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /tests/Gedmo/Timestampable/Fixture/SupperClassExtension.php: -------------------------------------------------------------------------------- 1 | title = $title; 22 | } 23 | 24 | public function getTitle() 25 | { 26 | return $this->title; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Gedmo/Timestampable/Fixture/Type.php: -------------------------------------------------------------------------------- 1 | id; 27 | } 28 | 29 | public function setTitle($title) 30 | { 31 | $this->title = $title; 32 | } 33 | 34 | public function getTitle() 35 | { 36 | return $this->title; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/Gedmo/Timestampable/Fixture/UsingTrait.php: -------------------------------------------------------------------------------- 1 | id; 33 | } 34 | 35 | public function setTitle($title) 36 | { 37 | $this->title = $title; 38 | } 39 | 40 | public function getTitle() 41 | { 42 | return $this->title; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /tests/Gedmo/Timestampable/Fixture/WithoutInterface.php: -------------------------------------------------------------------------------- 1 | id; 35 | } 36 | 37 | public function setTitle($title) 38 | { 39 | $this->title = $title; 40 | } 41 | 42 | public function getTitle() 43 | { 44 | return $this->title; 45 | } 46 | 47 | public function getCreated() 48 | { 49 | return $this->created; 50 | } 51 | 52 | public function getUpdated() 53 | { 54 | return $this->updated; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Document/Personal/ArticleTranslation.php: -------------------------------------------------------------------------------- 1 | id; 31 | } 32 | 33 | public function setTitle($title) 34 | { 35 | $this->title = $title; 36 | } 37 | 38 | public function getTitle() 39 | { 40 | return $this->title; 41 | } 42 | 43 | public function setContent($content) 44 | { 45 | $this->content = $content; 46 | } 47 | 48 | public function getContent() 49 | { 50 | return $this->content; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/File.php: -------------------------------------------------------------------------------- 1 | name = $name; 37 | } 38 | 39 | public function getName() 40 | { 41 | return $this->name; 42 | } 43 | 44 | public function setSize($size) 45 | { 46 | $this->size = $size; 47 | } 48 | 49 | public function getSize() 50 | { 51 | return $this->size; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Image.php: -------------------------------------------------------------------------------- 1 | mime = $mime; 22 | } 23 | 24 | public function getMime() 25 | { 26 | return $this->mime; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Issue114/Article.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function setCategory(Category $category) 47 | { 48 | $this->category = $category; 49 | } 50 | 51 | public function getCategory() 52 | { 53 | return $this->category; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Issue114/Category.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function addArticle(Article $article) 47 | { 48 | $this->articles[] = $article; 49 | } 50 | 51 | public function getArticles() 52 | { 53 | return $this->articles; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Issue138/Article.php: -------------------------------------------------------------------------------- 1 | id; 35 | } 36 | 37 | public function setTitle($title) 38 | { 39 | $this->title = $title; 40 | } 41 | 42 | public function getTitle() 43 | { 44 | return $this->title; 45 | } 46 | 47 | public function setTitleTest($titleTest) 48 | { 49 | $this->titleTest = $titleTest; 50 | } 51 | 52 | public function getTitleTest() 53 | { 54 | return $this->titleTest; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Issue173/Article.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function setCategory(Category $category) 47 | { 48 | $this->category = $category; 49 | } 50 | 51 | public function getCategory() 52 | { 53 | return $this->category; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Issue173/Product.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function setCategory(Category $category) 47 | { 48 | $this->category = $category; 49 | } 50 | 51 | public function getCategory() 52 | { 53 | return $this->category; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Issue75/File.php: -------------------------------------------------------------------------------- 1 | id; 29 | } 30 | 31 | public function setTitle($title) 32 | { 33 | $this->title = $title; 34 | } 35 | 36 | public function getTitle() 37 | { 38 | return $this->title; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Issue75/Image.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function addArticle(Article $article) 37 | { 38 | $this->articles[] = $article; 39 | } 40 | 41 | public function getArticles() 42 | { 43 | return $this->articles; 44 | } 45 | 46 | public function setTitle($title) 47 | { 48 | $this->title = $title; 49 | } 50 | 51 | public function getTitle() 52 | { 53 | return $this->title; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/MixedValue.php: -------------------------------------------------------------------------------- 1 | id; 35 | } 36 | 37 | public function setDate($date) 38 | { 39 | $this->date = $date; 40 | } 41 | 42 | public function getDate() 43 | { 44 | return $this->date; 45 | } 46 | 47 | public function setCust($cust) 48 | { 49 | $this->cust = $cust; 50 | } 51 | 52 | public function getCust() 53 | { 54 | return $this->cust; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Person.php: -------------------------------------------------------------------------------- 1 | id; 30 | } 31 | 32 | public function setName($name) 33 | { 34 | $this->name = $name; 35 | } 36 | 37 | public function getName() 38 | { 39 | return $this->name; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/PersonTranslation.php: -------------------------------------------------------------------------------- 1 | id; 34 | } 35 | 36 | public function setTitle($title) 37 | { 38 | $this->title = $title; 39 | } 40 | 41 | public function getTitle() 42 | { 43 | return $this->title; 44 | } 45 | 46 | public function setDescription($description) 47 | { 48 | $this->description = $description; 49 | } 50 | 51 | public function getDescription() 52 | { 53 | return $this->description; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/StringIdentifier.php: -------------------------------------------------------------------------------- 1 | uid; 34 | } 35 | 36 | public function setUid($uid) 37 | { 38 | $this->uid = $uid; 39 | } 40 | 41 | public function setTitle($title) 42 | { 43 | $this->title = $title; 44 | } 45 | 46 | public function getTitle() 47 | { 48 | return $this->title; 49 | } 50 | 51 | public function setTranslatableLocale($locale) 52 | { 53 | $this->locale = $locale; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Template/ArticleTemplate.php: -------------------------------------------------------------------------------- 1 | title = $title; 34 | } 35 | 36 | public function getTitle() 37 | { 38 | return $this->title; 39 | } 40 | 41 | public function setContent($content) 42 | { 43 | $this->content = $content; 44 | } 45 | 46 | public function getContent() 47 | { 48 | return $this->content; 49 | } 50 | 51 | public function setTranslatableLocale($locale) 52 | { 53 | $this->locale = $locale; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/TemplatedArticle.php: -------------------------------------------------------------------------------- 1 | name = $name; 30 | } 31 | 32 | public function getName() 33 | { 34 | return $this->name; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/Gedmo/Translatable/Fixture/Type/Custom.php: -------------------------------------------------------------------------------- 1 | getClobTypeDeclarationSQL($fieldDeclaration); 15 | } 16 | 17 | public function convertToDatabaseValue($value, AbstractPlatform $platform) 18 | { 19 | return serialize($value); 20 | } 21 | 22 | public function convertToPHPValue($value, AbstractPlatform $platform) 23 | { 24 | if ($value === null) { 25 | return null; 26 | } 27 | 28 | $value = (is_resource($value)) ? stream_get_contents($value) : $value; 29 | $val = unserialize($value); 30 | if ($val === false && $value !== 'b:0;') { 31 | new \Exception('Conversion failed'); 32 | } 33 | 34 | return $val; 35 | } 36 | 37 | public function getName() 38 | { 39 | return self::NAME; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tests/Gedmo/Translator/Fixture/CustomProxy.php: -------------------------------------------------------------------------------- 1 | setTranslatedValue('name', $name); 12 | } 13 | 14 | public function getName() 15 | { 16 | return $this->getTranslatedValue('name'); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/Gedmo/Translator/Fixture/PersonCustomTranslation.php: -------------------------------------------------------------------------------- 1 | id; 42 | } 43 | 44 | public function setParent($parent = null) 45 | { 46 | $this->parent = $parent; 47 | } 48 | 49 | public function getParent() 50 | { 51 | return $this->parent; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/Closure/CategoryClosure.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | namespace Tree\Fixture\Closure; 9 | 10 | use Doctrine\ORM\Mapping as ORM; 11 | 12 | /** 13 | * @ORM\Entity 14 | */ 15 | class News 16 | { 17 | /** 18 | * @ORM\Id 19 | * @ORM\Column(name="id", type="integer") 20 | * @ORM\GeneratedValue(strategy="IDENTITY") 21 | */ 22 | private $id; 23 | 24 | /** 25 | * @ORM\Column(name="title", type="string", length=64) 26 | */ 27 | private $title; 28 | 29 | /** 30 | * @ORM\OneToOne(targetEntity="Tree\Fixture\Closure\Category", cascade={"persist"}) 31 | * @ORM\JoinColumn(name="category_id", referencedColumnName="id") 32 | */ 33 | private $category; 34 | 35 | public function __construct($title, Category $category) 36 | { 37 | $this->title = $title; 38 | $this->category = $category; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/Closure/PersonClosure.php: -------------------------------------------------------------------------------- 1 | username = $username; 20 | } 21 | 22 | public function getUsername() 23 | { 24 | return $this->username; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/Comment.php: -------------------------------------------------------------------------------- 1 | article = $article; 32 | } 33 | 34 | public function getId() 35 | { 36 | return $this->id; 37 | } 38 | 39 | public function setMessage($message) 40 | { 41 | $this->message = $message; 42 | } 43 | 44 | public function getMessage() 45 | { 46 | return $this->message; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/Genealogy/Man.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Gediminas Morkevicius 8 | * @link http://www.gediminasm.org 9 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 | */ 11 | 12 | namespace Tree\Fixture\Mock; 13 | 14 | use Gedmo\Tree\Strategy\ODM\MongoDB\MaterializedPath; 15 | use Doctrine\Common\Persistence\ObjectManager; 16 | use Gedmo\Mapping\Event\AdapterInterface; 17 | 18 | class MaterializedPathMock extends MaterializedPath 19 | { 20 | public $releaseLocks = false; 21 | 22 | protected function releaseTreeLocks(ObjectManager $om, AdapterInterface $ea) 23 | { 24 | if ($this->releaseLocks) { 25 | parent::releaseTreeLocks($om, $ea); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/Node.php: -------------------------------------------------------------------------------- 1 | slug; 29 | } 30 | 31 | public function setTitle($title) 32 | { 33 | $this->title = $title; 34 | } 35 | 36 | public function getTitle() 37 | { 38 | return $this->title; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/Repository/BehavioralCategoryRepository.php: -------------------------------------------------------------------------------- 1 | id; 32 | } 33 | 34 | public function setType($type) 35 | { 36 | $this->type = $type; 37 | } 38 | 39 | public function getType() 40 | { 41 | return $this->type; 42 | } 43 | 44 | public function setValves($valves) 45 | { 46 | $this->valves = $valves; 47 | } 48 | 49 | public function getValves() 50 | { 51 | return $this->valves; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/Transport/Vehicle.php: -------------------------------------------------------------------------------- 1 | id; 39 | } 40 | 41 | public function setEngine(Engine $engine) 42 | { 43 | $this->engine = $engine; 44 | } 45 | 46 | public function getEngine() 47 | { 48 | return $this->engine; 49 | } 50 | 51 | public function setTitle($title) 52 | { 53 | $this->title = $title; 54 | } 55 | 56 | public function getTitle() 57 | { 58 | return $this->title; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/UserGroup.php: -------------------------------------------------------------------------------- 1 | setName($name); 23 | } 24 | 25 | /** 26 | * @return string 27 | */ 28 | public function getRoleId() 29 | { 30 | return $this->name; 31 | } 32 | 33 | public function getName() 34 | { 35 | return $this->name; 36 | } 37 | 38 | public function setName($name) 39 | { 40 | $this->name = $name; 41 | $this->setRoleId($name); 42 | 43 | return $this; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /tests/Gedmo/Tree/Fixture/UserLDAP.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Gediminas Morkevicius 10 | * @link http://www.gediminasm.org 11 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 | */ 13 | 14 | class FileInfoArrayTest extends \PHPUnit_Framework_TestCase 15 | { 16 | /** 17 | * @expectedException RuntimeException 18 | */ 19 | public function test_constructor_ifKeysAreNotValidOrSomeAreMissingThrowException() 20 | { 21 | $fileInfo = new FileInfoArray(array()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/Gedmo/Uploadable/FilenameGenerator/FilenameGeneratorAlphanumericTest.php: -------------------------------------------------------------------------------- 1 | 11 | * @author Gediminas Morkevicius 12 | * @link http://www.gediminasm.org 13 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 14 | */ 15 | class FilenameGeneratorAlphanumericTest extends \PHPUnit_Framework_TestCase 16 | { 17 | public function testGenerator() 18 | { 19 | $generator = new FilenameGeneratorAlphanumeric(); 20 | 21 | $filename = 'MegaName_For_A_###$$$File$$$###'; 22 | $extension = '.exe'; 23 | 24 | $this->assertEquals('meganame-for-a-file-.exe', $generator->generate($filename, $extension)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/Gedmo/Uploadable/Fixture/Entity/FileWithAlphanumericName.php: -------------------------------------------------------------------------------- 1 | id; 30 | } 31 | 32 | public function setFilePath($filePath) 33 | { 34 | $this->filePath = $filePath; 35 | } 36 | 37 | public function getFilePath() 38 | { 39 | return $this->filePath; 40 | } 41 | 42 | public function getPath() 43 | { 44 | return __DIR__.'/../../../../temp/uploadable'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /tests/Gedmo/Uploadable/Fixture/Entity/FileWithCustomFilenameGenerator.php: -------------------------------------------------------------------------------- 1 | id; 30 | } 31 | 32 | public function setFilePath($filePath) 33 | { 34 | $this->filePath = $filePath; 35 | } 36 | 37 | public function getFilePath() 38 | { 39 | return $this->filePath; 40 | } 41 | 42 | public function getPath() 43 | { 44 | return __DIR__.'/../../../../temp/uploadable'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /tests/Gedmo/Uploadable/Fixture/Entity/FileWithSha1Name.php: -------------------------------------------------------------------------------- 1 | id; 30 | } 31 | 32 | public function setFilePath($filePath) 33 | { 34 | $this->filePath = $filePath; 35 | } 36 | 37 | public function getFilePath() 38 | { 39 | return $this->filePath; 40 | } 41 | 42 | public function getPath() 43 | { 44 | return __DIR__.'/../../../../temp/uploadable'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /tests/Gedmo/Uploadable/Fixture/Entity/FileWithoutPath.php: -------------------------------------------------------------------------------- 1 | id; 30 | } 31 | 32 | public function setFilePath($filePath) 33 | { 34 | $this->filePath = $filePath; 35 | } 36 | 37 | public function getFilePath() 38 | { 39 | return $this->filePath; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tests/Gedmo/Uploadable/Stub/FileInfoStub.php: -------------------------------------------------------------------------------- 1 | mimeType = $mimeType; 14 | } 15 | 16 | public function guess($path) 17 | { 18 | return $this->mimeType; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/Gedmo/Uploadable/Stub/UploadableListenerStub.php: -------------------------------------------------------------------------------- 1 | returnFalseOnMoveUploadedFile ? false : parent::doMoveFile($source, $dest, false); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tests/Gedmo/Wrapper/Fixture/Document/Article.php: -------------------------------------------------------------------------------- 1 | id; 23 | } 24 | 25 | public function setTitle($title) 26 | { 27 | $this->title = $title; 28 | } 29 | 30 | public function getTitle() 31 | { 32 | return $this->title; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/Gedmo/Wrapper/Fixture/Entity/Article.php: -------------------------------------------------------------------------------- 1 | id; 27 | } 28 | 29 | public function setTitle($title) 30 | { 31 | $this->title = $title; 32 | } 33 | 34 | public function getTitle() 35 | { 36 | return $this->title; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/data/test: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /tests/data/test with spaces.txt: -------------------------------------------------------------------------------- 1 | test with spaces -------------------------------------------------------------------------------- /tests/data/test.txt: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /tests/data/test2.txt: -------------------------------------------------------------------------------- 1 | test2 -------------------------------------------------------------------------------- /tests/data/test4: -------------------------------------------------------------------------------- 1 | test4 -------------------------------------------------------------------------------- /tests/data/test_3.txt: -------------------------------------------------------------------------------- 1 | test3 -------------------------------------------------------------------------------- /tests/temp/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/l3pp4rd/DoctrineExtensions/4f178f30724a10f4356e58a4c4c410d5c828cc30/tests/temp/.empty -------------------------------------------------------------------------------- /tests/travis/php.ini: -------------------------------------------------------------------------------- 1 | extension = mongo.so 2 | apc.enable_cli=1 3 | -------------------------------------------------------------------------------- /upgrade/2-3-0.md: -------------------------------------------------------------------------------- 1 | # Upgrade from 2.1.x or 2.2.x to 2.3.0 2 | 3 | ## Changes introduced 4 | 5 | - **TranslationListener** classname has changed into **TranslatableListener** 6 | - Abstract classes (mapped superclasses) were moved into MappedSuperclass subdirectory. Etc.: 7 | **Gedmo\Translatable\Entity\AbstractTranslation** now is **Gedmo\Translatable\Entity\MappedSuperclass\AbstractTranslation** 8 | same for abstract log entries and closure. --------------------------------------------------------------------------------