Skip to content

Commit

Permalink
Add warning about (un-)serializable not supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Aug 19, 2015
1 parent 3661cd8 commit aacbad2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Doctrine/Common/Collections/ArrayCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
/**
* An ArrayCollection is a Collection implementation that wraps a regular PHP array.
*
* Warning: Using (un-)serialize() on a collection is not a supported use-case
* and may break when we change the internals in the future. If you need to
* serialize a collection use {@link toArray()} and reconstruct the collection
* manually.
*
* @since 2.0
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
Expand Down

0 comments on commit aacbad2

Please sign in to comment.